Skip to content

Adopt icon font in tree widgets and panels - #81446

Merged
Miguel Solorio (miguelsolorio) merged 4 commits into
masterfrom
misolori/icon-font-tree
Sep 26, 2019
Merged

Miguel Solorio (miguelsolorio) merged 4 commits into
masterfrom
misolori/icon-font-tree

Conversation

@miguelsolorio

@miguelsolorio Miguel Solorio (miguelsolorio) commented Sep 25, 2019 •

Copy link
Copy Markdown
Contributor

Related #78889

This adopts the icon font in the tree widget:

image

This also sets all of the icons inside of the tree widget to inherit the foreground of each element. For example, modifying the sideBarSectionHeader.foreground color would apply the change to all icons in the sideBarSectionHeader:

image

And likewise, modifying the generic foreground will apply to all items:

image

This also fixes #55857 (🎉 ):

image

And also works with file icon themes:

image

Would love for you to verify that this is working all of our tree widgets (I've already done my own verification). I also introduced a new element into the sidebar section header, renderTwisties, to have a container for the icon as there wasn't one there.

cc Isidor Nikolic (@isidorn) for the explorer, Martin Aeschlimann (@aeschli) for file icons

@joaomoreno João Moreno (joaomoreno) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stawwwhp, you're rocking this too HARD! 🤘

Seriously, great work. I've found no issues and it looks great!

@isidorn

Copy link
Copy Markdown

I built vscode and verified this works great in Explorer and Open Editors.
When you say all tree widgets I actually tried in debug also and this is not adopted there yet. I guess more PRs are incoming?

Overall fantastic work, thanks for doing this!

@miguelsolorio

Copy link
Copy Markdown
Contributor Author

Thank you both for verifying, merging this in!

Isidor Nikolic (@isidorn) this is expected as the trees inside of the editor use editor.foreground:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

icons-product Issues for in-product icons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icons are hard to see in selected states

3 participants