Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to set color on individual list items #1046

Open
SamWhited opened this issue Oct 25, 2024 · 0 comments
Open

No way to set color on individual list items #1046

SamWhited opened this issue Oct 25, 2024 · 0 comments

Comments

@SamWhited
Copy link
Contributor

The treeview provides a way to set the color on individual items in the tree, but the list view does not. It can still be done by using style tags in the text itself, but when this is done the various styles on list view (ie. setting the highlighted style) no longer work which is confusing and also means that if the list text has meaning you have to strip style tags out of it first before you can use it.

It would be nice to have a way to add a list item with specific styles set, or have a way to get the text of list items without styles tags included and have any styles set on the list override those style tags.

In my particular case I have a file opener UI which can swap between a tree view of the filesystem or a list view, but it's proving hard to ensure the styles remain consistent (and if I get the filename from the list it has style tags in it that have to be split out).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant