diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-27 10:47:14 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-27 10:47:14 -0600 |
commit | 9e259ef0610b4434320413e06e954e5c50f27a83 (patch) | |
tree | fb2a2a5e7f223bebbaf075b2f855bfa9e5aaa9ae /editor/gui | |
parent | 3a5ce2ff946422a3de63340ff113bb4ab68c8b73 (diff) | |
parent | 0ff5d5fd046bda499648259642c16f677d439c74 (diff) | |
download | redot-engine-9e259ef0610b4434320413e06e954e5c50f27a83.tar.gz |
Merge pull request #97884 from passivestar/list-variations
Add theme type variations for secondary Trees and ItemLists
Diffstat (limited to 'editor/gui')
-rw-r--r-- | editor/gui/editor_file_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/gui/editor_file_dialog.cpp b/editor/gui/editor_file_dialog.cpp index 0381609804..2e86bfb337 100644 --- a/editor/gui/editor_file_dialog.cpp +++ b/editor/gui/editor_file_dialog.cpp @@ -2317,6 +2317,7 @@ EditorFileDialog::EditorFileDialog() { favorites->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); fav_vb->add_child(favorites); favorites->set_v_size_flags(Control::SIZE_EXPAND_FILL); + favorites->set_theme_type_variation("ItemListSecondary"); favorites->connect(SceneStringName(item_selected), callable_mp(this, &EditorFileDialog::_favorite_selected)); VBoxContainer *rec_vb = memnew(VBoxContainer); @@ -2326,6 +2327,7 @@ EditorFileDialog::EditorFileDialog() { recent = memnew(ItemList); recent->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); recent->set_allow_reselect(true); + recent->set_theme_type_variation("ItemListSecondary"); rec_vb->add_margin_child(TTR("Recent:"), recent, true); recent->connect(SceneStringName(item_selected), callable_mp(this, &EditorFileDialog::_recent_selected)); |