Skip to content

How to change selected item color in list without redesign the list #437

Answered by bashbunni
Abod-Shashtari asked this question in Q&A
Discussion options

You must be logged in to vote

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/0ab98bc9641223f611139382485b1ad3

Note that your items will need to satisfy the list.DefaultItem interface to display the list.DefaultDelegate styles correctly

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Abod-Shashtari
Comment options

Answer selected by Abod-Shashtari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants