summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme/default_theme.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-26 22:34:35 +0100
committerGitHub <noreply@github.com>2021-01-26 22:34:35 +0100
commite330b945b706c63f4ecff6809094859354968f86 (patch)
treee72c316e6ebadaf0ee56688dc017140afa791d14 /scene/resources/default_theme/default_theme.cpp
parent1f5d6eb13a404d14a3a7fd9a05dbc9b2ff7b61ff (diff)
parent6d828984707958031591f681a75793aeca83036b (diff)
Merge pull request #38559 from Chaosus/button_icon_styles
Reveals Button "icon_color" style properties to the user
Diffstat (limited to 'scene/resources/default_theme/default_theme.cpp')
-rw-r--r--scene/resources/default_theme/default_theme.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 5449fdc039..80ecff52f1 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -191,6 +191,12 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_color("font_disabled_color", "Button", control_font_disabled_color);
theme->set_color("font_outline_color", "Button", Color(1, 1, 1));
+ theme->set_color("icon_normal_color", "Button", Color(1, 1, 1, 1));
+ theme->set_color("icon_pressed_color", "Button", Color(1, 1, 1, 1));
+ theme->set_color("icon_hover_color", "Button", Color(1, 1, 1, 1));
+ theme->set_color("icon_hover_pressed_color", "Button", Color(1, 1, 1, 1));
+ theme->set_color("icon_disabled_color", "Button", Color(1, 1, 1, 1));
+
theme->set_constant("hseparation", "Button", 2 * scale);
// LinkButton