You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Add missing RTL styles for InspectorActionButton
This commit is contained in:
@@ -1999,17 +1999,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.
|
||||
|
||||
Reference in New Issue
Block a user