Fix floating window corner radius

(cherry picked from commit 308186a89e)
This commit is contained in:
Giganzo
2024-08-29 10:27:27 +02:00
committed by Rémi Verschelde
parent 4d0f10a543
commit 1e5d7a0907

View File

@ -1768,7 +1768,9 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
p_theme->set_color("background", EditorStringName(Editor), background_color_opaque); 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("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. // Editor focus.
p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus); p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus);