Implement disabled state for Checkbox in Tree
This commit is contained in:
@ -773,8 +773,11 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_stylebox("custom_button_hover", "Tree", button_hover);
|
||||
|
||||
theme->set_icon("checked", "Tree", icons["checked"]);
|
||||
theme->set_icon("checked_disabled", "Tree", icons["checked_disabled"]);
|
||||
theme->set_icon("unchecked", "Tree", icons["unchecked"]);
|
||||
theme->set_icon("unchecked_disabled", "Tree", icons["unchecked_disabled"]);
|
||||
theme->set_icon("indeterminate", "Tree", icons["indeterminate"]);
|
||||
theme->set_icon("indeterminate_disabled", "Tree", icons["indeterminate_disabled"]);
|
||||
theme->set_icon("updown", "Tree", icons["updown"]);
|
||||
theme->set_icon("select_arrow", "Tree", icons["option_button_arrow"]);
|
||||
theme->set_icon("arrow", "Tree", icons["arrow_down"]);
|
||||
@ -789,6 +792,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_color("title_button_color", "Tree", control_font_color);
|
||||
theme->set_color("font_color", "Tree", control_font_low_color);
|
||||
theme->set_color("font_selected_color", "Tree", control_font_pressed_color);
|
||||
theme->set_color("font_disabled_color", "Tree", control_font_disabled_color);
|
||||
theme->set_color("font_outline_color", "Tree", Color(1, 1, 1));
|
||||
theme->set_color("guide_color", "Tree", Color(0.7, 0.7, 0.7, 0.25));
|
||||
theme->set_color("drop_position_color", "Tree", Color(1, 1, 1));
|
||||
|
||||
@ -1 +1 @@
|
||||
<svg height="16" viewBox="0 0 16 15.999999" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m3.3333333 1c-1.2887 0-2.3333333 1.0446683-2.3333333 2.3333333v9.3333337c0 1.2887 1.0446683 2.333333 2.3333333 2.333333h9.3333337c1.2887 0 2.333333-1.044668 2.333333-2.333333v-9.3333337c0-1.2887-1.044668-2.3333333-2.333333-2.3333333z" fill="#fff" fill-opacity=".75" stroke-width="1.16667"/><path d="m3 7h10v2h-10z" fill="#1a1a1a" stroke-linecap="square" stroke-opacity=".75" stroke-width="2"/></svg>
|
||||
<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="14" height="14" rx="2.333" fill="#fff" fill-opacity=".75"/><path d="m3 7h10v2h-10z" fill="#1a1a1a"/></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 215 B |
1
scene/theme/icons/indeterminate_disabled.svg
Normal file
1
scene/theme/icons/indeterminate_disabled.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="14" height="14" rx="2.333" fill="#fff" fill-opacity=".37"/><path d="m3 7h10v2h-10z" fill="#1a1a1a" fill-opacity=".5"/></svg>
|
||||
|
After Width: | Height: | Size: 233 B |
Reference in New Issue
Block a user