diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-03-14 13:06:39 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-03-26 15:49:43 +0100 |
commit | c7b4dcae2f3b75ad7146e36f196893731f403144 (patch) | |
tree | d6223521b246aa36d0e0b78d6ed626fa2a0e3769 /editor/editor_themes.cpp | |
parent | 441f1a5fe9a3bf0e4e5dab578f793500b1ff6e3d (diff) |
Open sub-windows as embedded if the OS does not support them
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r-- | editor/editor_themes.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index c7f353f6fb..4eedf61a5f 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -911,15 +911,16 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { style_window->set_border_width(MARGIN_TOP, 24 * EDSCALE); style_window->set_expand_margin_size(MARGIN_TOP, 24 * EDSCALE); - theme->set_stylebox("panel", "AcceptDialog", style_default); - theme->set_stylebox("panel_window", "AcceptDialog", style_window); - theme->set_color("title_color", "AcceptDialog", font_color); - theme->set_icon("close", "AcceptDialog", theme->get_icon("GuiClose", "EditorIcons")); - theme->set_icon("close_highlight", "AcceptDialog", theme->get_icon("GuiClose", "EditorIcons")); - theme->set_constant("close_h_ofs", "AcceptDialog", 22 * EDSCALE); - theme->set_constant("close_v_ofs", "AcceptDialog", 20 * EDSCALE); - theme->set_constant("title_height", "AcceptDialog", 24 * EDSCALE); - theme->set_font("title_font", "AcceptDialog", theme->get_font("title", "EditorFonts")); + theme->set_stylebox("panel", "Window", style_default); + theme->set_stylebox("panel_window", "Window", style_window); + theme->set_color("title_color", "Window", font_color); + theme->set_icon("close", "Window", theme->get_icon("GuiClose", "EditorIcons")); + theme->set_icon("close_highlight", "Window", theme->get_icon("GuiClose", "EditorIcons")); + theme->set_constant("close_h_ofs", "Window", 22 * EDSCALE); + theme->set_constant("close_v_ofs", "Window", 20 * EDSCALE); + theme->set_constant("title_height", "Window", 24 * EDSCALE); + theme->set_constant("resize_margin", "Window", 4 * EDSCALE); + theme->set_font("title_font", "Window", theme->get_font("title", "EditorFonts")); // complex window, for now only Editor settings and Project settings Ref<StyleBoxFlat> style_complex_window = style_window->duplicate(); |