Add icon color theme items for TabBar and TabContainer

This commit is contained in:
Michael Alexsander
2025-10-02 13:53:33 -03:00
parent 6d33ad2917
commit 8973c91293
8 changed files with 81 additions and 10 deletions

View File

@@ -388,6 +388,18 @@
<theme_item name="font_unselected_color" data_type="color" type="Color" default="Color(0.7, 0.7, 0.7, 1)">
Font color of the other, unselected tabs.
</theme_item>
<theme_item name="icon_disabled_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of disabled tabs.
</theme_item>
<theme_item name="icon_hovered_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the currently hovered tab. Does not apply to the selected tab.
</theme_item>
<theme_item name="icon_selected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the currently selected tab.
</theme_item>
<theme_item name="icon_unselected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the other, unselected tabs.
</theme_item>
<theme_item name="h_separation" data_type="constant" type="int" default="4">
The horizontal separation between the elements inside tabs.
</theme_item>

View File

@@ -305,7 +305,7 @@
Font color of disabled tabs.
</theme_item>
<theme_item name="font_hovered_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
Font color of the currently hovered tab.
Font color of the currently hovered tab. Does not apply to the selected tab.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
The tint of text outline of the tab name.
@@ -316,6 +316,18 @@
<theme_item name="font_unselected_color" data_type="color" type="Color" default="Color(0.7, 0.7, 0.7, 1)">
Font color of the other, unselected tabs.
</theme_item>
<theme_item name="icon_disabled_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of disabled tabs.
</theme_item>
<theme_item name="icon_hovered_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the currently hovered tab. Does not apply to the selected tab.
</theme_item>
<theme_item name="icon_selected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the currently selected tab.
</theme_item>
<theme_item name="icon_unselected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
Icon color of the other, unselected tabs.
</theme_item>
<theme_item name="icon_max_width" data_type="constant" type="int" default="0">
The maximum allowed width of the tab's icon. This limit is applied on top of the default size of the icon, but before the value set with [method TabBar.set_tab_icon_max_width]. The height is adjusted according to the icon's ratio.
</theme_item>