mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +00:00
Add theme type variations for secondary Trees and ItemLists
This commit is contained in:
parent
fd4c29a189
commit
0ff5d5fd04
24 changed files with 35 additions and 0 deletions
|
|
@ -4154,6 +4154,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);
|
||||
|
|
@ -4197,6 +4198,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);
|
||||
|
|
@ -4206,6 +4208,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