From dd5462c3f945db133e40cf6afff376303fc06f27 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Tue, 13 Jan 2026 21:52:33 +0400 Subject: [PATCH] Fix inner tabs outer panel corners at zero radius --- editor/themes/theme_modern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/themes/theme_modern.cpp b/editor/themes/theme_modern.cpp index 6b19390974..77a0a830ca 100644 --- a/editor/themes/theme_modern.cpp +++ b/editor/themes/theme_modern.cpp @@ -2108,7 +2108,7 @@ void ThemeModern::populate_editor_styles(const Ref &p_theme, Editor Ref style_tabbar_background_inner = p_theme->get_stylebox(SNAME("tabbar_background"), SNAME("TabContainer"))->duplicate(); style_tabbar_background_inner->set_content_margin_all(p_config.base_margin * EDSCALE); - style_tabbar_background_inner->set_corner_radius_all(p_config.corner_radius * EDSCALE + p_config.base_margin * EDSCALE); + style_tabbar_background_inner->set_corner_radius_all(p_config.corner_radius > 0 ? (p_config.corner_radius + p_config.base_margin) * EDSCALE : 0); style_tabbar_background_inner->set_bg_color(background_color); p_theme->set_stylebox("tabbar_background", "TabContainerInner", style_tabbar_background_inner);