Browse Source

Merge pull request #22567 from Calinou/unselected-tabs-background

Add a subtle background and border to unselected tabs in the editor
Rémi Verschelde 7 years ago
parent
commit
3a036571f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/editor_themes.cpp

+ 2 - 2
editor/editor_themes.cpp

@@ -478,8 +478,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
 	style_tab_selected->set_bg_color(tab_color);
 
 	Ref<StyleBoxFlat> style_tab_unselected = style_tab_selected->duplicate();
-	style_tab_unselected->set_draw_center(false);
-	style_tab_unselected->set_border_width_all(0);
+	style_tab_unselected->set_bg_color(dark_color_1);
+	style_tab_unselected->set_border_color_all(dark_color_2);
 
 	// Editor background
 	theme->set_stylebox("Background", "EditorStyles", make_flat_stylebox(background_color, default_margin_size, default_margin_size, default_margin_size, default_margin_size));