@@ -725,7 +725,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
725
725
// Button.
726
726
727
727
p_theme->set_stylebox(CoreStringName(normal), "Button", p_config.button_style);
728
- p_theme->set_stylebox(" hover" , "Button", p_config.button_style_hover);
728
+ p_theme->set_stylebox(SceneStringName( hover) , "Button", p_config.button_style_hover);
729
729
p_theme->set_stylebox(SceneStringName(pressed), "Button", p_config.button_style_pressed);
730
730
p_theme->set_stylebox("focus", "Button", p_config.button_style_focus);
731
731
p_theme->set_stylebox("disabled", "Button", p_config.button_style_disabled);
@@ -753,7 +753,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
753
753
// MenuButton.
754
754
755
755
p_theme->set_stylebox(CoreStringName(normal), "MenuButton", p_config.panel_container_style);
756
- p_theme->set_stylebox(" hover" , "MenuButton", p_config.button_style_hover);
756
+ p_theme->set_stylebox(SceneStringName( hover) , "MenuButton", p_config.button_style_hover);
757
757
p_theme->set_stylebox(SceneStringName(pressed), "MenuButton", p_config.panel_container_style);
758
758
p_theme->set_stylebox("focus", "MenuButton", p_config.panel_container_style);
759
759
p_theme->set_stylebox("disabled", "MenuButton", p_config.panel_container_style);
@@ -769,7 +769,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
769
769
// MenuBar.
770
770
771
771
p_theme->set_stylebox(CoreStringName(normal), "MenuBar", p_config.button_style);
772
- p_theme->set_stylebox(" hover" , "MenuBar", p_config.button_style_hover);
772
+ p_theme->set_stylebox(SceneStringName( hover) , "MenuBar", p_config.button_style_hover);
773
773
p_theme->set_stylebox(SceneStringName(pressed), "MenuBar", p_config.button_style_pressed);
774
774
p_theme->set_stylebox("disabled", "MenuBar", p_config.button_style_disabled);
775
775
@@ -806,7 +806,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
806
806
807
807
p_theme->set_stylebox("focus", "OptionButton", option_button_focus_style);
808
808
p_theme->set_stylebox(CoreStringName(normal), "OptionButton", p_config.button_style);
809
- p_theme->set_stylebox(" hover" , "OptionButton", p_config.button_style_hover);
809
+ p_theme->set_stylebox(SceneStringName( hover) , "OptionButton", p_config.button_style_hover);
810
810
p_theme->set_stylebox(SceneStringName(pressed), "OptionButton", p_config.button_style_pressed);
811
811
p_theme->set_stylebox("disabled", "OptionButton", p_config.button_style_disabled);
812
812
@@ -841,7 +841,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
841
841
p_theme->set_stylebox(CoreStringName(normal), "CheckButton", p_config.panel_container_style);
842
842
p_theme->set_stylebox(SceneStringName(pressed), "CheckButton", p_config.panel_container_style);
843
843
p_theme->set_stylebox("disabled", "CheckButton", p_config.panel_container_style);
844
- p_theme->set_stylebox(" hover" , "CheckButton", p_config.panel_container_style);
844
+ p_theme->set_stylebox(SceneStringName( hover) , "CheckButton", p_config.panel_container_style);
845
845
p_theme->set_stylebox("hover_pressed", "CheckButton", p_config.panel_container_style);
846
846
847
847
p_theme->set_icon("checked", "CheckButton", p_theme->get_icon(SNAME("GuiToggleOn"), EditorStringName(EditorIcons)));
@@ -879,7 +879,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
879
879
p_theme->set_stylebox(CoreStringName(normal), "CheckBox", checkbox_style);
880
880
p_theme->set_stylebox(SceneStringName(pressed), "CheckBox", checkbox_style);
881
881
p_theme->set_stylebox("disabled", "CheckBox", checkbox_style);
882
- p_theme->set_stylebox(" hover" , "CheckBox", checkbox_style);
882
+ p_theme->set_stylebox(SceneStringName( hover) , "CheckBox", checkbox_style);
883
883
p_theme->set_stylebox("hover_pressed", "CheckBox", checkbox_style);
884
884
p_theme->set_icon("checked", "CheckBox", p_theme->get_icon(SNAME("GuiChecked"), EditorStringName(EditorIcons)));
885
885
p_theme->set_icon("unchecked", "CheckBox", p_theme->get_icon(SNAME("GuiUnchecked"), EditorStringName(EditorIcons)));
@@ -1334,7 +1334,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
1334
1334
Ref<StyleBoxFlat> style_menu_hover = p_config.button_style_hover->duplicate();
1335
1335
// Don't use rounded corners for hover highlights since the StyleBox touches the PopupMenu's edges.
1336
1336
style_menu_hover->set_corner_radius_all(0);
1337
- p_theme->set_stylebox(" hover" , "PopupMenu", style_menu_hover);
1337
+ p_theme->set_stylebox(SceneStringName( hover) , "PopupMenu", style_menu_hover);
1338
1338
1339
1339
Ref<StyleBoxLine> style_popup_separator(memnew(StyleBoxLine));
1340
1340
style_popup_separator->set_color(p_config.separator_color);
@@ -1796,7 +1796,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
1796
1796
tag->set_corner_radius(CORNER_BOTTOM_LEFT, 0);
1797
1797
tag->set_corner_radius(CORNER_TOP_RIGHT, 4);
1798
1798
tag->set_corner_radius(CORNER_BOTTOM_RIGHT, 4);
1799
- p_theme->set_stylebox(" hover" , "ProjectTag", tag);
1799
+ p_theme->set_stylebox(SceneStringName( hover) , "ProjectTag", tag);
1800
1800
1801
1801
tag = p_config.button_style_pressed->duplicate();
1802
1802
tag->set_corner_radius(CORNER_TOP_LEFT, 0);
@@ -1883,15 +1883,15 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
1883
1883
p_theme->set_stylebox("normal_mirrored", "MainScreenButton", menu_transparent_style);
1884
1884
p_theme->set_stylebox(SceneStringName(pressed), "MainScreenButton", menu_transparent_style);
1885
1885
p_theme->set_stylebox("pressed_mirrored", "MainScreenButton", menu_transparent_style);
1886
- p_theme->set_stylebox(" hover" , "MainScreenButton", main_screen_button_hover);
1886
+ p_theme->set_stylebox(SceneStringName( hover) , "MainScreenButton", main_screen_button_hover);
1887
1887
p_theme->set_stylebox("hover_mirrored", "MainScreenButton", main_screen_button_hover);
1888
1888
p_theme->set_stylebox("hover_pressed", "MainScreenButton", main_screen_button_hover);
1889
1889
p_theme->set_stylebox("hover_pressed_mirrored", "MainScreenButton", main_screen_button_hover);
1890
1890
1891
1891
p_theme->set_type_variation("MainMenuBar", "FlatMenuButton");
1892
1892
p_theme->set_stylebox(CoreStringName(normal), "MainMenuBar", menu_transparent_style);
1893
1893
p_theme->set_stylebox(SceneStringName(pressed), "MainMenuBar", main_screen_button_hover);
1894
- p_theme->set_stylebox(" hover" , "MainMenuBar", main_screen_button_hover);
1894
+ p_theme->set_stylebox(SceneStringName( hover) , "MainMenuBar", main_screen_button_hover);
1895
1895
p_theme->set_stylebox("hover_pressed", "MainMenuBar", main_screen_button_hover);
1896
1896
1897
1897
// Run bar.
@@ -1907,7 +1907,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
1907
1907
p_theme->set_stylebox(CoreStringName(normal), "BottomPanelButton", menu_transparent_style);
1908
1908
p_theme->set_stylebox(SceneStringName(pressed), "BottomPanelButton", menu_transparent_style);
1909
1909
p_theme->set_stylebox("hover_pressed", "BottomPanelButton", main_screen_button_hover);
1910
- p_theme->set_stylebox(" hover" , "BottomPanelButton", main_screen_button_hover);
1910
+ p_theme->set_stylebox(SceneStringName( hover) , "BottomPanelButton", main_screen_button_hover);
1911
1911
// Don't tint the icon even when in "pressed" state.
1912
1912
p_theme->set_color("icon_pressed_color", "BottomPanelButton", Color(1, 1, 1, 1));
1913
1913
Color icon_hover_color = p_config.icon_normal_color * (p_config.dark_theme ? 1.15 : 1.0);
@@ -1991,12 +1991,12 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
1991
1991
style_flat_button_pressed->set_bg_color(flat_pressed_color);
1992
1992
1993
1993
p_theme->set_stylebox(CoreStringName(normal), SceneStringName(FlatButton), style_flat_button);
1994
- p_theme->set_stylebox(" hover" , SceneStringName(FlatButton), style_flat_button_hover);
1994
+ p_theme->set_stylebox(SceneStringName( hover) , SceneStringName(FlatButton), style_flat_button_hover);
1995
1995
p_theme->set_stylebox(SceneStringName(pressed), SceneStringName(FlatButton), style_flat_button_pressed);
1996
1996
p_theme->set_stylebox("disabled", SceneStringName(FlatButton), style_flat_button);
1997
1997
1998
1998
p_theme->set_stylebox(CoreStringName(normal), "FlatMenuButton", style_flat_button);
1999
- p_theme->set_stylebox(" hover" , "FlatMenuButton", style_flat_button_hover);
1999
+ p_theme->set_stylebox(SceneStringName( hover) , "FlatMenuButton", style_flat_button_hover);
2000
2000
p_theme->set_stylebox(SceneStringName(pressed), "FlatMenuButton", style_flat_button_pressed);
2001
2001
p_theme->set_stylebox("disabled", "FlatMenuButton", style_flat_button);
2002
2002
@@ -2022,7 +2022,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
2022
2022
editor_log_button_pressed->set_bg_color(flat_pressed_color.lightened(0.5));
2023
2023
}
2024
2024
p_theme->set_stylebox(CoreStringName(normal), "EditorLogFilterButton", style_flat_button);
2025
- p_theme->set_stylebox(" hover" , "EditorLogFilterButton", style_flat_button_hover);
2025
+ p_theme->set_stylebox(SceneStringName( hover) , "EditorLogFilterButton", style_flat_button_hover);
2026
2026
p_theme->set_stylebox(SceneStringName(pressed), "EditorLogFilterButton", editor_log_button_pressed);
2027
2027
}
2028
2028
@@ -2043,7 +2043,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
2043
2043
panel_button_style_disabled->set_bg_color(p_config.disabled_bg_color);
2044
2044
2045
2045
p_theme->set_stylebox(CoreStringName(normal), "PanelBackgroundButton", panel_button_style);
2046
- p_theme->set_stylebox(" hover" , "PanelBackgroundButton", panel_button_style_hover);
2046
+ p_theme->set_stylebox(SceneStringName( hover) , "PanelBackgroundButton", panel_button_style_hover);
2047
2047
p_theme->set_stylebox(SceneStringName(pressed), "PanelBackgroundButton", panel_button_style_pressed);
2048
2048
p_theme->set_stylebox("disabled", "PanelBackgroundButton", panel_button_style_disabled);
2049
2049
}
@@ -2086,7 +2086,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
2086
2086
2087
2087
style_inspector_action = p_config.button_style_hover->duplicate();
2088
2088
style_inspector_action->set_content_margin(SIDE_RIGHT, action_extra_margin);
2089
- p_theme->set_stylebox(" hover" , "InspectorActionButton", style_inspector_action);
2089
+ p_theme->set_stylebox(SceneStringName( hover) , "InspectorActionButton", style_inspector_action);
2090
2090
2091
2091
style_inspector_action = p_config.button_style_hover->duplicate();
2092
2092
style_inspector_action->set_content_margin(SIDE_LEFT, action_extra_margin);
@@ -2125,7 +2125,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
2125
2125
p_theme->set_color("icon_hover_color", "PreviewLightButton", dim_light_highlighted_color);
2126
2126
2127
2127
p_theme->set_stylebox(CoreStringName(normal), "PreviewLightButton", sb_empty_borderless);
2128
- p_theme->set_stylebox(" hover" , "PreviewLightButton", sb_empty_borderless);
2128
+ p_theme->set_stylebox(SceneStringName( hover) , "PreviewLightButton", sb_empty_borderless);
2129
2129
p_theme->set_stylebox("focus", "PreviewLightButton", sb_empty_borderless);
2130
2130
p_theme->set_stylebox(SceneStringName(pressed), "PreviewLightButton", sb_empty_borderless);
2131
2131
}
@@ -2330,7 +2330,7 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
2330
2330
Ref<StyleBoxFlat> style_animation_track_hover = make_flat_stylebox(Color(0.5, 0.5, 0.5, 0.1), 0, 0, 0, 0, p_config.corner_radius);
2331
2331
2332
2332
p_theme->set_stylebox("odd", "AnimationTrackEdit", style_animation_track_odd);
2333
- p_theme->set_stylebox(" hover" , "AnimationTrackEdit", style_animation_track_hover);
2333
+ p_theme->set_stylebox(SceneStringName( hover) , "AnimationTrackEdit", style_animation_track_hover);
2334
2334
p_theme->set_stylebox("focus", "AnimationTrackEdit", p_config.button_style_focus);
2335
2335
2336
2336
p_theme->set_color("h_line_color", "AnimationTrackEdit", p_config.font_color * Color(1, 1, 1, 0.2));
0 commit comments