summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorgeequlim <geequlim@gmail.com>2017-11-24 18:56:09 +0800
committergeequlim <geequlim@gmail.com>2017-11-24 19:31:20 +0800
commitf3588b6b65871b452686df70b1a486ec3ceb8e8c (patch)
tree22bcdbe92b52feb6a7eb2bba69b200696c939947 /scene/resources
parentbc75fae5798c85b4fb18cbcdc3fcbc45a644dae3 (diff)
Fix style error with MenuButton in default theme
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/default_theme/default_theme.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index cd28c9d203..36988e0c4c 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -310,7 +310,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_stylebox("pressed", "OptionButton", sb_optbutton_pressed);
theme->set_stylebox("hover", "OptionButton", sb_optbutton_hover);
theme->set_stylebox("disabled", "OptionButton", sb_optbutton_disabled);
- theme->set_stylebox("focus", "OptionButton", sb_button_focus);
+ theme->set_stylebox("focus", "OptionButton", sb_optbutton_focus);
theme->set_icon("arrow", "OptionButton", make_icon(option_arrow_png));
@@ -328,8 +328,8 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_stylebox("normal", "MenuButton", sb_button_normal);
theme->set_stylebox("pressed", "MenuButton", sb_button_pressed);
- theme->set_stylebox("hover", "MenuButton", sb_button_pressed);
- theme->set_stylebox("disabled", "MenuButton", make_empty_stylebox(0, 0, 0, 0));
+ theme->set_stylebox("hover", "MenuButton", sb_button_hover);
+ theme->set_stylebox("disabled", "MenuButton", sb_button_disabled);
theme->set_stylebox("focus", "MenuButton", sb_button_focus);
theme->set_font("font", "MenuButton", default_font);