Godot Engine – Multi-platform 2D and 3D game engine
Fix `ScriptEditor` and `TabContainer` margins
Simon Döhlc4e5b3791957
diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cppindex da5b695e3d3..7443548f982 100644--- a/editor/script/script_editor_plugin.cpp+++ b/editor/script/script_editor_plugin.cpp@@ -4338,7 +4338,7 @@ void ScriptEditor::update_layout(EditorDock::DockLayout p_layout, int p_slot) {remove_theme_constant_override("margin_right");remove_theme_constant_override("margin_bottom");} else {- int margin = EditorNode::get_singleton()->get_editor_theme()->get_constant("base_margin", EditorStringName(Editor));+ int margin = EDSCALE_RND(EditorNode::get_singleton()->get_editor_theme()->get_constant("base_margin", EditorStringName(Editor)));add_theme_constant_override("margin_left", margin);add_theme_constant_override("margin_right", margin);add_theme_constant_override("margin_bottom", margin);diff --git a/editor/themes/theme_modern.cpp b/editor/themes/theme_modern.cppindex b78801b92de..a8c07ea8c52 100644--- a/editor/themes/theme_modern.cpp+++ b/editor/themes/theme_modern.cpp@@ -396,7 +396,7 @@ void ThemeModern::populate_shared_styles(const Ref<EditorTheme> &p_theme, Editorp_config.content_panel_style->set_content_margin_individual(content_panel_margin, EDSCALE_RND(2) + content_panel_margin, content_panel_margin, content_panel_margin);p_config.tab_container_style = p_config.base_style->duplicate();- p_config.tab_container_style->set_content_margin_all(EDSCALE_RND(p_config.increased_margin * 1.5));+ p_config.tab_container_style->set_content_margin_all(EDSCALE_RND(p_config.increased_margin));p_config.tab_container_style->set_corner_radius_individual(0, 0, EDSCALE_RND(p_config.corner_radius), EDSCALE_RND(p_config.corner_radius));p_config.foreground_panel = p_config.tab_container_style->duplicate();