Skip to content

Commit

Permalink
Tabs: Remove unused 'panel' stylebox from default theme
Browse files Browse the repository at this point in the history
Cf. godotengine#37875 (comment).

(cherry picked from commit cd8d321)
  • Loading branch information
akien-mga committed Apr 29, 2021
1 parent 41a016c commit d54c13a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions doc/classes/Tabs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@
</theme_item>
<theme_item name="label_valign_fg" type="int" default="0">
</theme_item>
<theme_item name="panel" type="StyleBox">
</theme_item>
<theme_item name="tab_bg" type="StyleBox">
The style of an inactive tab.
</theme_item>
Expand Down
1 change: 0 additions & 1 deletion scene/resources/default_theme/default_theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_stylebox("tab_fg", "Tabs", sb_expand(make_stylebox(tab_current_png, 4, 3, 4, 1, 16, 3, 16, 2), 2, 2, 2, 2));
theme->set_stylebox("tab_bg", "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("panel", "Tabs", tc_sb);
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));

Expand Down

0 comments on commit d54c13a

Please sign in to comment.