Update CSS for description elements of tree nodes#9742
Update CSS for description elements of tree nodes#9742vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
Conversation
|
@msujew I'll take a look at the changes 👍 In the past we tried to fix the problem, but it was true for multiple trees: |
8382323 to
6eec607
Compare
|
@vince-fugnitto Thanks for the input. I applied the same fix to the other trees as well. |
|
I was hoping there could be a general solution in |
6eec607 to
175f7b1
Compare
Forgot about those, done.
What would you propose? We would basically need some kind of common css class for all marker info elements, right? I could try to implement a more general solution instead of the current approach. |
Perhaps it is out of scope for the moment (I'd be fine with this approach and a refactoring after). I was thinking to have a generic class for node descriptions which can be handled in theia/packages/core/src/browser/tree/tree-widget.tsx Lines 45 to 56 in 8dd8401 |
175f7b1 to
99d612c
Compare
I'd usually agree, but one of my meetings got spontaneously canceled and I got an hour of free time ;)
Yeah, that's what I thought about as well. I implemented it that way, WDYT? |
vince-fugnitto
left a comment
There was a problem hiding this comment.
The changes look much better to me 👍 and work correctly as well!
Do you mind updating the commit message and description to reflect the changes better, I believe the scope changed since the initial implementation.
99d612c to
94a8081
Compare
94a8081 to
9fe8303
Compare
Adds a new `theia-TreeNodeInfo` CSS class that should be used by every part of a treenode that adds additional info. The info part is displayed with a lower opacity. Examples for this CSS class can be seen for the `owner` and `position` info of problem markers and the `path` of a debugging breakpoint.
9fe8303 to
25a2919
Compare
|
@vince-fugnitto FYI, I updated the severity marker as well, so that it aligns with vscode. |
Looks great! In the future we can think of supporting #9744. |


What it does
Closes #9741
Closes #7189
Aligns our tree node CSS with vscode (using opacity and default foreground coloring on description elements). Allows for better readability in light mode.
Problem markers on current
master. Note the hard to read light theme:With the change in place:
Compared to vscode:
How to test
Problem markers:
Search view:
Debug view:
Review checklist
Reminder for reviewers