diff options
author | RedMser <redmser.jj2@gmail.com> | 2022-09-02 18:24:33 +0200 |
---|---|---|
committer | RedMser <redmser.jj2@gmail.com> | 2022-09-02 18:24:33 +0200 |
commit | 7664ea8c970c7d31b979451b766b8987c30b7480 (patch) | |
tree | aadc0c1ade22681eb53f928af1ed4fc2c7df889c /editor | |
parent | 6ccbc2709323c3f77f9509dcf55edad6d46e2a7c (diff) |
EditorTheme: Remove rounded corners for all popups
Expands #59045 to apply to all kinds of popups,
since they all render as separate windows.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index d0bb63dde9..571e017cd6 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -635,6 +635,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { const Color shadow_color = Color(0, 0, 0, dark_theme ? 0.3 : 0.1); style_popup->set_shadow_color(shadow_color); style_popup->set_shadow_size(4 * EDSCALE); + // Popups are separate windows by default in the editor. Windows currently don't support per-pixel transparency + // in 4.0, and even if it was, it may not always work in practice (e.g. running with compositing disabled). + style_popup->set_corner_radius_all(0); Ref<StyleBoxLine> style_popup_separator(memnew(StyleBoxLine)); style_popup_separator->set_color(separator_color); @@ -975,9 +978,6 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { // Always display a border for PopupMenus so they can be distinguished from their background. style_popup_menu->set_border_width_all(EDSCALE); style_popup_menu->set_border_color(dark_color_2); - // Popups are separate windows by default in the editor. Windows currently don't support per-pixel transparency - // in 4.0, and even if it was, it may not always work in practice (e.g. running with compositing disabled). - style_popup_menu->set_corner_radius_all(0); theme->set_stylebox("panel", "PopupMenu", style_popup_menu); Ref<StyleBoxFlat> style_menu_hover = style_widget_hover->duplicate(); |