How to change selected item color in list without redesign the list #437
-
How can I change the selected item color in list from the default (purple) color to another color while keeping the default design as it was. e.g. : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like it's defined here in the source code. So basically what you can do is tweak the styles defined in by Note that your items will need to satisfy the |
Beta Was this translation helpful? Give feedback.
Looks like it's defined here in the source code.
So basically what you can do is tweak the styles defined in by
list.DefaultDelegate
to tailor the list items to suit your needs. Here's an example where I changed the selected item to be highlighted in red instead of the default pink: https://gist.github.com/bashbunni/0ab98bc9641223f611139382485b1ad3Note that your items will need to satisfy the
list.DefaultItem
interface to display thelist.DefaultDelegate
styles correctly