diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-03 18:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 18:35:09 +0200 |
commit | ea4b8de2b4c06e6f18bf0470d716f787bddfecc3 (patch) | |
tree | c5f6fd4a4f7ece3422ba86c676dd8cec1ffcbf47 /editor | |
parent | 259d7781eadad6fb8ac603ef4b68e0cffa373b70 (diff) | |
parent | 1bd9efae36447f2eb82ae6832c604f31971d186e (diff) |
Merge pull request #63877 from YeldhamDev/check_theme_fix
Fix text position when hovering pressed `CheckButton/Box` elements in the editor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index fb92a9e898..d188871f59 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -834,6 +834,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_stylebox("pressed", "CheckButton", style_menu); theme->set_stylebox("disabled", "CheckButton", style_menu); theme->set_stylebox("hover", "CheckButton", style_menu); + theme->set_stylebox("hover_pressed", "CheckButton", style_menu); theme->set_icon("on", "CheckButton", theme->get_icon(SNAME("GuiToggleOn"), SNAME("EditorIcons"))); theme->set_icon("on_disabled", "CheckButton", theme->get_icon(SNAME("GuiToggleOnDisabled"), SNAME("EditorIcons"))); @@ -871,6 +872,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_stylebox("pressed", "CheckBox", sb_checkbox); theme->set_stylebox("disabled", "CheckBox", sb_checkbox); theme->set_stylebox("hover", "CheckBox", sb_checkbox); + theme->set_stylebox("hover_pressed", "CheckBox", sb_checkbox); theme->set_icon("checked", "CheckBox", theme->get_icon(SNAME("GuiChecked"), SNAME("EditorIcons"))); theme->set_icon("unchecked", "CheckBox", theme->get_icon(SNAME("GuiUnchecked"), SNAME("EditorIcons"))); theme->set_icon("radio_checked", "CheckBox", theme->get_icon(SNAME("GuiRadioChecked"), SNAME("EditorIcons"))); |