From cb9fb69d8cd5ee150fd2a7a06f50e0a1a86b150b Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:29:25 +0400 Subject: [PATCH] Add missing RTL styles for InspectorActionButton --- editor/themes/editor_theme_manager.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp index 6d8a8fdb38d..d21bf28692f 100644 --- a/editor/themes/editor_theme_manager.cpp +++ b/editor/themes/editor_theme_manager.cpp @@ -1999,17 +1999,34 @@ void EditorThemeManager::_populate_editor_styles(const Ref &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.