Browse Source

Merge pull request #48241 from akien-mga/tabs-panel-style-unused

Tabs: Remove unused 'panel' stylebox from default theme
Rémi Verschelde 4 years ago
parent
commit
0582cefcbb
2 changed files with 0 additions and 3 deletions
  1. 0 2
      doc/classes/Tabs.xml
  2. 0 1
      scene/resources/default_theme/default_theme.cpp

+ 0 - 2
doc/classes/Tabs.xml

@@ -389,8 +389,6 @@
 		<theme_item name="outline_size" type="int" default="0">
 		<theme_item name="outline_size" type="int" default="0">
 			The size of the tab text outline.
 			The size of the tab text outline.
 		</theme_item>
 		</theme_item>
-		<theme_item name="panel" type="StyleBox">
-		</theme_item>
 		<theme_item name="tab_disabled" type="StyleBox">
 		<theme_item name="tab_disabled" type="StyleBox">
 			The style of disabled tabs.
 			The style of disabled tabs.
 		</theme_item>
 		</theme_item>

+ 0 - 1
scene/resources/default_theme/default_theme.cpp

@@ -830,7 +830,6 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
 	theme->set_stylebox("tab_selected", "Tabs", sb_expand(make_stylebox(tab_current_png, 4, 3, 4, 1, 16, 3, 16, 2), 2, 2, 2, 2));
 	theme->set_stylebox("tab_selected", "Tabs", sb_expand(make_stylebox(tab_current_png, 4, 3, 4, 1, 16, 3, 16, 2), 2, 2, 2, 2));
 	theme->set_stylebox("tab_unselected", "Tabs", sb_expand(make_stylebox(tab_behind_png, 5, 4, 5, 1, 16, 5, 16, 2), 3, 3, 3, 3));
 	theme->set_stylebox("tab_unselected", "Tabs", sb_expand(make_stylebox(tab_behind_png, 5, 4, 5, 1, 16, 5, 16, 2), 3, 3, 3, 3));
 	theme->set_stylebox("tab_disabled", "Tabs", sb_expand(make_stylebox(tab_disabled_png, 5, 5, 5, 1, 16, 6, 16, 4), 3, 0, 3, 3));
 	theme->set_stylebox("tab_disabled", "Tabs", sb_expand(make_stylebox(tab_disabled_png, 5, 5, 5, 1, 16, 6, 16, 4), 3, 0, 3, 3));
-	theme->set_stylebox("panel", "Tabs", tc_sb);
 	theme->set_stylebox("button_pressed", "Tabs", make_stylebox(button_pressed_png, 4, 4, 4, 4));
 	theme->set_stylebox("button_pressed", "Tabs", make_stylebox(button_pressed_png, 4, 4, 4, 4));
 	theme->set_stylebox("button", "Tabs", make_stylebox(button_normal_png, 4, 4, 4, 4));
 	theme->set_stylebox("button", "Tabs", make_stylebox(button_normal_png, 4, 4, 4, 4));