Skip to content

Commit

Permalink
Merge pull request #93520 from passivestar/main-screen-button-mirror
Browse files Browse the repository at this point in the history
Add missing RTL styles for MainScreenButton
  • Loading branch information
akien-mga committed Jun 24, 2024
2 parents c5260fb + ea5fe1d commit 398d1d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/themes/editor_theme_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,9 +1817,13 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
main_screen_button_hover->set_content_margin((Side)i, p_config.button_style_hover->get_content_margin((Side)i));
}
p_theme->set_stylebox(CoreStringName(normal), "MainScreenButton", menu_transparent_style);
p_theme->set_stylebox("normal_mirrored", "MainScreenButton", menu_transparent_style);
p_theme->set_stylebox(SceneStringName(pressed), "MainScreenButton", menu_transparent_style);
p_theme->set_stylebox("pressed_mirrored", "MainScreenButton", menu_transparent_style);
p_theme->set_stylebox("hover", "MainScreenButton", main_screen_button_hover);
p_theme->set_stylebox("hover_mirrored", "MainScreenButton", main_screen_button_hover);
p_theme->set_stylebox("hover_pressed", "MainScreenButton", main_screen_button_hover);
p_theme->set_stylebox("hover_pressed_mirrored", "MainScreenButton", main_screen_button_hover);

p_theme->set_type_variation("MainMenuBar", "FlatMenuButton");
p_theme->set_stylebox(CoreStringName(normal), "MainMenuBar", menu_transparent_style);
Expand Down

0 comments on commit 398d1d4

Please sign in to comment.