summaryrefslogtreecommitdiff
path: root/editor/editor_themes.cpp
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2022-03-04 18:43:50 +0100
committerRaul Santos <raulsntos@gmail.com>2022-03-04 18:59:43 +0100
commit0d7b4663bec93d8c97e4523c48a7e702079e86ce (patch)
tree9d016e8f034edf149d2ce25186120be897913e08 /editor/editor_themes.cpp
parentf356c8ac4bfb16be361d8ff21ecbb406baa6e631 (diff)
Add icon_normal_color to Button in editor theme
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r--editor/editor_themes.cpp4
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);