Godot Engine – Multi-platform 2D and 3D game engine
fixed wide theme variants
Kapparoti4efa2842c40d
diff --git a/editor/settings/action_map_editor.cpp b/editor/settings/action_map_editor.cppindex 289d0b91d0a..e3b49718371 100644--- a/editor/settings/action_map_editor.cpp+++ b/editor/settings/action_map_editor.cpp@@ -624,7 +624,7 @@ ActionMapEditor::ActionMapEditor() {MarginContainer *mc = memnew(MarginContainer);mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);- mc->set_theme_type_variation("NoBorderHorizontalBottom");+ mc->set_theme_type_variation("NoBorderActionEditor");main_vbox->add_child(mc);// Action Editor Treediff --git a/editor/themes/theme_modern.cpp b/editor/themes/theme_modern.cppindex 10d531fcc0c..cbb2a033294 100644--- a/editor/themes/theme_modern.cpp+++ b/editor/themes/theme_modern.cpp@@ -2045,17 +2045,6 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editorp_theme->set_type_variation("NoBorderHorizontalBottom", "NoBorderHorizontal");p_theme->set_constant("margin_bottom", "NoBorderHorizontalBottom", margin);- margin *= 2;-- // Used in nested containers.- p_theme->set_type_variation("NoBorderHorizontalWide", "MarginContainer");- p_theme->set_constant("margin_left", "NoBorderHorizontalWide", margin);- p_theme->set_constant("margin_right", "NoBorderHorizontalWide", margin);-- // Same as above, including the bottom.- p_theme->set_type_variation("NoBorderHorizontalBottomWide", "NoBorderHorizontalWide");- p_theme->set_constant("margin_bottom", "NoBorderHorizontalBottomWide", margin);-// Used in the asset library. Specifically, the ("bg", "AssetLib") stylebox.margin = -p_config.base_margin * EDSCALE;@@ -2099,6 +2088,19 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editorp_theme->set_type_variation("NoBorderHorizontalWindow", "MarginContainer");p_theme->set_constant("margin_left", "NoBorderHorizontalWindow", margin);p_theme->set_constant("margin_right", "NoBorderHorizontalWindow", margin);++ // Used in nested containers.+ p_theme->set_type_variation("NoBorderHorizontalWide", "MarginContainer");+ p_theme->set_constant("margin_left", "NoBorderHorizontalWide", margin);+ p_theme->set_constant("margin_right", "NoBorderHorizontalWide", margin);++ // Same as above, including the bottom.+ p_theme->set_type_variation("NoBorderHorizontalBottomWide", "NoBorderHorizontalWide");+ p_theme->set_constant("margin_bottom", "NoBorderHorizontalBottomWide", 2 * -bottom_panel_margin);++ // Used in the action map editor.+ p_theme->set_type_variation("NoBorderActionEditor", "NoBorderHorizontalWide");+ p_theme->set_constant("margin_bottom", "NoBorderActionEditor", -bottom_panel_margin);}// Buttons in material previews.