From 1cfa2ad1662be4ac519a9c32b95fdc2bd39a209d Mon Sep 17 00:00:00 2001 From: nathanwfranke Date: Fri, 7 Feb 2020 21:03:20 -0600 Subject: [PATCH] Fix transparent editor theme being brighter (cherry picked from commit 0222f7848219616550747f2adb8cf585f2a009fd) --- editor/editor_themes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 5ede89c3394..f8e944ee9e8 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -559,7 +559,9 @@ Ref create_editor_theme(const Ref 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 style_focus = style_default->duplicate();