mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #97884 from passivestar/list-variations
Add theme type variations for secondary Trees and ItemLists
This commit is contained in:
commit
9e259ef061
24 changed files with 35 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue