summaryrefslogtreecommitdiffstats
path: root/editor/gui
diff options
context:
space:
mode:
authorpassivestar <60579014+passivestar@users.noreply.github.com>2024-10-06 17:10:05 +0400
committerpassivestar <60579014+passivestar@users.noreply.github.com>2024-11-19 18:33:30 +0400
commit0ff5d5fd046bda499648259642c16f677d439c74 (patch)
treec437ffbb03d54f81dbf53f563db21997cf270ec9 /editor/gui
parentfd4c29a189e53a1e085df5b9b9a05cac9351b3ef (diff)
downloadredot-engine-0ff5d5fd046bda499648259642c16f677d439c74.tar.gz
Add theme type variations for secondary Trees and ItemLists
Diffstat (limited to 'editor/gui')
-rw-r--r--editor/gui/editor_file_dialog.cpp2
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));