Skip to content

Commit

Permalink
Merge pull request #93318 from passivestar/action-button-rtl
Browse files Browse the repository at this point in the history
Add missing RTL styles for InspectorActionButton
  • Loading branch information
akien-mga committed Jun 20, 2024
2 parents d21812f + cb9fb69 commit fb00825
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions editor/themes/editor_theme_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2006,17 +2006,34 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
style_inspector_action->set_content_margin(SIDE_RIGHT, action_extra_margin);
p_theme->set_stylebox(CoreStringName(normal), "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style->duplicate();
style_inspector_action->set_bg_color(color_inspector_action);
style_inspector_action->set_content_margin(SIDE_LEFT, action_extra_margin);
p_theme->set_stylebox("normal_mirrored", "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_hover->duplicate();
style_inspector_action->set_content_margin(SIDE_RIGHT, action_extra_margin);
p_theme->set_stylebox("hover", "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_hover->duplicate();
style_inspector_action->set_content_margin(SIDE_LEFT, action_extra_margin);
p_theme->set_stylebox("hover_mirrored", "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_pressed->duplicate();
style_inspector_action->set_content_margin(SIDE_RIGHT, action_extra_margin);
p_theme->set_stylebox(SceneStringName(pressed), "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_pressed->duplicate();
style_inspector_action->set_content_margin(SIDE_LEFT, action_extra_margin);
p_theme->set_stylebox("pressed_mirrored", "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_disabled->duplicate();
style_inspector_action->set_content_margin(SIDE_RIGHT, action_extra_margin);
p_theme->set_stylebox("disabled", "InspectorActionButton", style_inspector_action);

style_inspector_action = p_config.button_style_disabled->duplicate();
style_inspector_action->set_content_margin(SIDE_LEFT, action_extra_margin);
p_theme->set_stylebox("disabled_mirrored", "InspectorActionButton", style_inspector_action);
}

// Buttons in material previews.
Expand Down

0 comments on commit fb00825

Please sign in to comment.