diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-04 21:34:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 21:34:40 +0100 |
commit | 38771eb032042c461071b9a5f757930e6ef93592 (patch) | |
tree | c378c0ae3d20a6f877b278f284f6d78262c53cb0 /editor | |
parent | c787f5993149fc7ad008b8d6279c92f4226bf3ff (diff) | |
parent | 0d7b4663bec93d8c97e4523c48a7e702079e86ce (diff) |
Merge pull request #58759 from raulsntos/icon_color-editor-theme
Add `icon_normal_color` to Button in editor theme
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index cdf51dda20..e97ea389be 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -435,7 +435,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { const Color disabled_color = mono_color.inverted().lerp(base_color, 0.7); const Color disabled_bg_color = mono_color.inverted().lerp(base_color, 0.9); - Color icon_hover_color = Color(1, 1, 1) * (dark_theme ? 1.15 : 1.45); + const Color icon_normal_color = Color(1, 1, 1); + Color icon_hover_color = icon_normal_color * (dark_theme ? 1.15 : 1.45); icon_hover_color.a = 1.0; Color icon_focus_color = icon_hover_color; // Make the pressed icon color overbright because icons are not completely white on a dark theme. @@ -688,6 +689,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("font_focus_color", "Button", font_focus_color); theme->set_color("font_pressed_color", "Button", accent_color); theme->set_color("font_disabled_color", "Button", font_disabled_color); + theme->set_color("icon_normal_color", "Button", icon_normal_color); theme->set_color("icon_hover_color", "Button", icon_hover_color); theme->set_color("icon_focus_color", "Button", icon_focus_color); theme->set_color("icon_pressed_color", "Button", icon_pressed_color); |