Skip to content

Commit

Permalink
Merge pull request #36004 from nathanfranke/fix-transparent-theme-color
Browse files Browse the repository at this point in the history
Fix transparent editor theme being brighter
  • Loading branch information
akien-mga authored Mar 23, 2021
2 parents cdafcc3 + 0222f78 commit 22716a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/editor_themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 22716a1

Please sign in to comment.