-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Don't tint editor bottom panel icons when hovered or pressed #98765
Don't tint editor bottom panel icons when hovered or pressed #98765
Conversation
This prevents the error/warning icons from turning gray or green, making them hard to recognize. A similar mechanism is already used for EditorLog filter button icons. This also fixes typos in FileDialog theme color assignment (`icon_color_pressed` instead of `icon_pressed_color`). The exposed theme item names remain the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a moderately colorblind person, I appreciate this 😂
Color icon_hover_color = p_config.icon_normal_color * (p_config.dark_theme ? 1.15 : 1.0); | ||
icon_hover_color.a = 1.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this meant to be the same thing as the lightened() function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, more or less. It's slightly different but probably doesn't matter here.
That said, this may be better to harmonize in a different PR since we use color multiplication all over the place in EditorThemeManager right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works as expected
Closes #98540
Thanks! |
This prevents the error/warning icons from turning gray or green, making them hard to recognize. A similar mechanism is already used for EditorLog filter button icons.
This also fixes typos in FileDialog theme color assignment (
icon_color_pressed
instead oficon_pressed_color
). The exposed theme item names remain the same.icon_hover_pressed_color
is now set for EditorLogFilterButton as well, so you get a subtle visual feedback when hovering the buttons when they're already pressed.This was mentioned in a proposal issue or discussion recently, but I can't find it right now.
Preview
Before
editor_bottom_panel_icon_hover_before.mp4
After
editor_bottom_panel_icon_hover_after.mp4