Replace icons with codicons#9864
Conversation
vince-fugnitto
left a comment
There was a problem hiding this comment.
@msujew I believe we should also update the widget icons themselves (ex: explorer, scm, ...), any reason we wanted to omit it initially?
Actually no, I just stopped thinking about it, once I noticed that the explorer icon is not in the codicon collection. But I just saw that every other icon is in there. So I'll replace those. What is your opinion on replacing the default folder/file icon in the explorer? Currently it still uses the fontawesome icons. |
I think the idea for consistency with vscode and what plugins use we should aim to update all icons (including font-awesome icons) to their codicon counterparts. This includes widgets when docked to sidepanels. It will create a uniform look and feel across the framework. |
d319b55 to
54b476c
Compare
54b476c to
908f64f
Compare
packages/callhierarchy/src/browser/callhierarchy-tree/callhierarchy-tree-widget.tsx
Outdated
Show resolved
Hide resolved
| return; | ||
| } | ||
| const text = `$(refresh~spin) ${message}`; | ||
| const text = `$(codicon-sync~spin) ${message}`; |
There was a problem hiding this comment.
This reminds me of the following issue #9768, perhaps it's something we can easily implement in the future.
packages/plugin-ext/src/main/browser/dialogs/modal-notification.ts
Outdated
Show resolved
Hide resolved
vince-fugnitto
left a comment
There was a problem hiding this comment.
If we previously had layout data saved (ex: local-storage), then starting the app may cause icons to be non-existent:
We may want to introduce a layout-migration:
theia/packages/core/src/browser/shell/application-shell.ts
Lines 51 to 62 in 1dba014
theia/packages/core/src/browser/shell/shell-layout-restorer.ts
Lines 87 to 110 in 1dba014
8e26068 to
5261bf2
Compare
Alright, done. It's a bit crude, but I found the string replacement method to be sufficient. |
56ac741 to
a51ecac
Compare
vince-fugnitto
left a comment
There was a problem hiding this comment.
@msujew do you mind rebasing the pull-request when you get a chance? I'd be happy to take a look at it afterwards :)
a51ecac to
928a937
Compare
vince-fugnitto
left a comment
There was a problem hiding this comment.
I really love the new icons and behavior for toolbar items 👍
I noticed two things when testing:
- I believe the bottom sidebar (settings icon) may need to be adjusted to have the same
font-sizeas the rest of the sidebar - I believe the search-in-workspace widget needs to be updated to take into account the new chevron (left is the pr, and right is master), the input fields are no longer aligned:
- dirty editors are no longer marked as dirty:
928a937 to
cac0dfb
Compare
|
@vince-fugnitto Thanks for the feedback, I think I addressed everything 👍 |
9ddd8e3 to
fba3a8a
Compare
|
@msujew do you mind rebasing when you get a chance? I finally have a bit of time to help with the review :) |
6fb09be to
fa6e0f3
Compare
fa6e0f3 to
a710ef7
Compare
|
@msujew I would be fine to merge the changes early in the month and iteratively fix issues if we find them. We would also probably want more padding (like master) when docking widgets out of the sidepanels: master: |
|
@vince-fugnitto Sure sounds good to me. I'm still willing to fix any issues that we find before we merge :) |
You can fix the last two I found, I wasn’t able to see any other regressions when testing 👍 |
6220691 to
9c100f3
Compare
vince-fugnitto
left a comment
There was a problem hiding this comment.
I'd be fine to merge and fix issues throughout the month if necessary as I do not want to hold back the pull-request 👍
I still notice some UI issues, perhaps one of the bigger ones (that may be caused by a bigger issue) is that the plugin-views sometimes do not display their proper icons:
I also noticed that the alignment of toolbar items contributed by plugins are not necessarily aligned properly as well (compared to builtin views like the explorer):
A very minor bug is how the scm arrow is not aligned properly (for CHANGES) compared to other trees:
This seems to be unrelated to my changes, see the current I noticed that the I assume this is due to the ES2017 upgrade and the I'll add an |
|
@msujew sorry I had thought I confirmed against master that it was a regression (turns out the code I confirmed against was older) but you're right that its not related to your changes and we can omit the fix for now 👍 |
415aa27 to
f4be918
Compare
f4be918 to
7f20cec
Compare
|
I'll merge this Tuesday or Wednesday, if no one else has any issues with my changes. |











What it does
Closes #6115
Does a lot of css work:
codiconandcodiconArray.I decided to leave the old svg icons in the codebase for backwards compatibility. I also couldn't notice any breaking change, but please keep an eye out for them.
How to test
Before starting to test I would recommend to start a second Theia instance to compare visual changes. The following testing steps are only the most important parts that have changed. As every icon in the app has changed, please refer to the code to gather a list of everything that has changed. Also, change the icon theme to
setiat appropriate times to check for tab-bar items, etc.Review checklist
Reminder for reviewers