summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-30 23:37:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-30 23:37:53 +0200
commit51d524b9a14c86f2ee6b13a1512856b672fae784 (patch)
tree09fdfd486398ae76e0eb63406a7d5d0b946514e0
parent77bc419071d31f3e8a12e63f943252951b56aa43 (diff)
parent308186a89e1b929e9dda685def930b1ac4ca97fd (diff)
downloadredot-engine-51d524b9a14c86f2ee6b13a1512856b672fae784.tar.gz
Merge pull request #96269 from Giganzo/floating-window-corner-radius
Fix floating window corner radius
-rw-r--r--editor/themes/editor_theme_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp
index f654707630..f5a790353a 100644
--- a/editor/themes/editor_theme_manager.cpp
+++ b/editor/themes/editor_theme_manager.cpp
@@ -1804,7 +1804,9 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
p_theme->set_color("background", EditorStringName(Editor), background_color_opaque);
p_theme->set_stylebox("Background", EditorStringName(EditorStyles), make_flat_stylebox(background_color_opaque, p_config.base_margin, p_config.base_margin, p_config.base_margin, p_config.base_margin));
- p_theme->set_stylebox("PanelForeground", EditorStringName(EditorStyles), p_config.base_style);
+ Ref<StyleBoxFlat> editor_panel_foreground = p_config.base_style->duplicate();
+ editor_panel_foreground->set_corner_radius_all(0);
+ p_theme->set_stylebox("PanelForeground", EditorStringName(EditorStyles), editor_panel_foreground);
// Editor focus.
p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus);