diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index 4bbe74f8888..a1ac82012f9 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -139,6 +139,21 @@ The horizontal space between [Button]'s icon and text. + + Icon modulate [Color] used when the [Button] is disabled. + + + Icon modulate [Color] used when the [Button] is being hovered. + + + Icon modulate [Color] used when the [Button] is being hovered and pressed. + + + Default icon [Color] of the [Button]. + + + Icon modulate [Color] used when the [Button] is being pressed. + Default [StyleBox] for the [Button]. diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 5449fdc0397..80ecff52f18 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, const Ref &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