diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-23 13:25:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 13:25:38 +0100 |
commit | 22716a1df21c0121f575a052c4cb2c94615ba441 (patch) | |
tree | 9afb57210f7dfbb11c3d51062d0b4d66621fd993 | |
parent | cdafcc3206d9ddd0c3778aea36291b4c40e180bc (diff) | |
parent | 0222f7848219616550747f2adb8cf585f2a009fd (diff) |
Merge pull request #36004 from nathanfranke/fix-transparent-theme-color
Fix transparent editor theme being brighter
-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 9aad1aa8d9..045e0419a6 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -561,7 +561,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { style_tab_disabled->set_border_color(disabled_color); // 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(); |