Add icon color theme items for TabBar and TabContainer
This commit is contained in:
@@ -993,6 +993,11 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_color("font_outline_color", "TabContainer", Color(0, 0, 0));
|
||||
theme->set_color("drop_mark_color", "TabContainer", Color(1, 1, 1));
|
||||
|
||||
theme->set_color("icon_selected_color", "TabContainer", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_hovered_color", "TabContainer", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_unselected_color", "TabContainer", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_disabled_color", "TabContainer", Color(1, 1, 1, 1));
|
||||
|
||||
theme->set_constant("side_margin", "TabContainer", Math::round(8 * scale));
|
||||
theme->set_constant("icon_separation", "TabContainer", Math::round(4 * scale));
|
||||
theme->set_constant("icon_max_width", "TabContainer", 0);
|
||||
@@ -1025,6 +1030,11 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_color("font_outline_color", "TabBar", Color(0, 0, 0));
|
||||
theme->set_color("drop_mark_color", "TabBar", Color(1, 1, 1));
|
||||
|
||||
theme->set_color("icon_selected_color", "TabBar", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_hovered_color", "TabBar", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_unselected_color", "TabBar", Color(1, 1, 1, 1));
|
||||
theme->set_color("icon_disabled_color", "TabBar", Color(1, 1, 1, 1));
|
||||
|
||||
theme->set_constant("h_separation", "TabBar", Math::round(4 * scale));
|
||||
theme->set_constant("icon_max_width", "TabBar", 0);
|
||||
theme->set_constant("outline_size", "TabBar", 0);
|
||||
|
||||
Reference in New Issue
Block a user