diff options
author | nathanwfranke <nathanwfranke@gmail.com> | 2020-02-07 21:03:20 -0600 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2020-10-29 05:36:03 -0500 |
commit | 0222f7848219616550747f2adb8cf585f2a009fd (patch) | |
tree | 724decc0bf4528bc6e8635979ba8f70d20d32893 /editor | |
parent | a4f70d7e6cb2b83f152717a69c9c042dd9424fc9 (diff) |
Fix transparent editor theme being brighter
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 79525ced51..6f43a136e9 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -534,7 +534,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { style_tab_disabled->set_border_color(color_disabled); // Editor background - theme->set_stylebox("Background", "EditorStyles", make_flat_stylebox(background_color, default_margin_size, default_margin_size, default_margin_size, default_margin_size)); + Color background_color_opaque = background_color; + background_color_opaque.a = 1.0; + theme->set_stylebox("Background", "EditorStyles", make_flat_stylebox(background_color_opaque, default_margin_size, default_margin_size, default_margin_size, default_margin_size)); // Focus Ref<StyleBoxFlat> style_focus = style_default->duplicate(); |