|
@@ -827,8 +827,11 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
|
style_tab_unselected->set_border_color(style_popup_border_color);
|
|
style_tab_unselected->set_border_color(style_popup_border_color);
|
|
Ref<StyleBoxFlat> style_tab_disabled = style_tab_unselected->duplicate();
|
|
Ref<StyleBoxFlat> style_tab_disabled = style_tab_unselected->duplicate();
|
|
style_tab_disabled->set_bg_color(style_disabled_color);
|
|
style_tab_disabled->set_bg_color(style_disabled_color);
|
|
|
|
+ Ref<StyleBoxFlat> style_tab_hovered = style_tab_unselected->duplicate();
|
|
|
|
+ style_tab_hovered->set_bg_color(Color(0.1, 0.1, 0.1, 0.3));
|
|
|
|
|
|
theme->set_stylebox("tab_selected", "TabContainer", style_tab_selected);
|
|
theme->set_stylebox("tab_selected", "TabContainer", style_tab_selected);
|
|
|
|
+ theme->set_stylebox("tab_hovered", "TabContainer", style_tab_hovered);
|
|
theme->set_stylebox("tab_unselected", "TabContainer", style_tab_unselected);
|
|
theme->set_stylebox("tab_unselected", "TabContainer", style_tab_unselected);
|
|
theme->set_stylebox("tab_disabled", "TabContainer", style_tab_disabled);
|
|
theme->set_stylebox("tab_disabled", "TabContainer", style_tab_disabled);
|
|
theme->set_stylebox("panel", "TabContainer", make_flat_stylebox(style_normal_color, 0, 0, 0, 0));
|
|
theme->set_stylebox("panel", "TabContainer", make_flat_stylebox(style_normal_color, 0, 0, 0, 0));
|
|
@@ -846,6 +849,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
|
theme->set_font_size("font_size", "TabContainer", -1);
|
|
theme->set_font_size("font_size", "TabContainer", -1);
|
|
|
|
|
|
theme->set_color("font_selected_color", "TabContainer", control_font_hover_color);
|
|
theme->set_color("font_selected_color", "TabContainer", control_font_hover_color);
|
|
|
|
+ theme->set_color("font_hovered_color", "TabContainer", control_font_hover_color);
|
|
theme->set_color("font_unselected_color", "TabContainer", control_font_low_color);
|
|
theme->set_color("font_unselected_color", "TabContainer", control_font_low_color);
|
|
theme->set_color("font_disabled_color", "TabContainer", control_font_disabled_color);
|
|
theme->set_color("font_disabled_color", "TabContainer", control_font_disabled_color);
|
|
theme->set_color("font_outline_color", "TabContainer", Color(1, 1, 1));
|
|
theme->set_color("font_outline_color", "TabContainer", Color(1, 1, 1));
|
|
@@ -859,6 +863,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
|
// TabBar
|
|
// TabBar
|
|
|
|
|
|
theme->set_stylebox("tab_selected", "TabBar", style_tab_selected);
|
|
theme->set_stylebox("tab_selected", "TabBar", style_tab_selected);
|
|
|
|
+ theme->set_stylebox("tab_hovered", "TabBar", style_tab_hovered);
|
|
theme->set_stylebox("tab_unselected", "TabBar", style_tab_unselected);
|
|
theme->set_stylebox("tab_unselected", "TabBar", style_tab_unselected);
|
|
theme->set_stylebox("tab_disabled", "TabBar", style_tab_disabled);
|
|
theme->set_stylebox("tab_disabled", "TabBar", style_tab_disabled);
|
|
theme->set_stylebox("button_pressed", "TabBar", button_pressed);
|
|
theme->set_stylebox("button_pressed", "TabBar", button_pressed);
|
|
@@ -875,6 +880,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
|
theme->set_font_size("font_size", "TabBar", -1);
|
|
theme->set_font_size("font_size", "TabBar", -1);
|
|
|
|
|
|
theme->set_color("font_selected_color", "TabBar", control_font_hover_color);
|
|
theme->set_color("font_selected_color", "TabBar", control_font_hover_color);
|
|
|
|
+ theme->set_color("font_hovered_color", "TabBar", control_font_hover_color);
|
|
theme->set_color("font_unselected_color", "TabBar", control_font_low_color);
|
|
theme->set_color("font_unselected_color", "TabBar", control_font_low_color);
|
|
theme->set_color("font_disabled_color", "TabBar", control_font_disabled_color);
|
|
theme->set_color("font_disabled_color", "TabBar", control_font_disabled_color);
|
|
theme->set_color("font_outline_color", "TabBar", Color(1, 1, 1));
|
|
theme->set_color("font_outline_color", "TabBar", Color(1, 1, 1));
|