Merge pull request #97884 from passivestar/list-variations

Add theme type variations for secondary Trees and ItemLists
This commit is contained in:
Thaddeus Crews 2024-11-27 10:47:14 -06:00
commit 9e259ef061
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
24 changed files with 35 additions and 0 deletions

View file

@ -4156,6 +4156,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
scripts_vbox->add_child(script_list);
script_list->set_custom_minimum_size(Size2(100, 60) * EDSCALE); //need to give a bit of limit to avoid it from disappearing
script_list->set_v_size_flags(SIZE_EXPAND_FILL);
script_list->set_theme_type_variation("ItemListSecondary");
script_split->set_split_offset(200 * EDSCALE);
_sort_list_on_update = true;
script_list->connect("item_clicked", callable_mp(this, &ScriptEditor::_script_list_clicked), CONNECT_DEFERRED);
@ -4199,6 +4200,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
members_overview = memnew(ItemList);
members_overview->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
members_overview->set_theme_type_variation("ItemListSecondary");
overview_vbox->add_child(members_overview);
members_overview->set_allow_reselect(true);
@ -4208,6 +4210,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
help_overview = memnew(ItemList);
help_overview->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
help_overview->set_theme_type_variation("ItemListSecondary");
overview_vbox->add_child(help_overview);
help_overview->set_allow_reselect(true);
help_overview->set_custom_minimum_size(Size2(0, 60) * EDSCALE); //need to give a bit of limit to avoid it from disappearing