summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorunknown <numaanzaheerahmed@yahoo.com>2020-04-04 16:18:43 +0530
committerunknown <numaanzaheerahmed@yahoo.com>2020-04-04 17:18:43 +0530
commit4413c562d68de10d0bb67151705051060a61557a (patch)
tree4133b92116dfc7fccd1d53fda51fd6b440a46e69 /scene
parentea48b403a9e7b8ddb2b814c6ea413bb9f5ed0518 (diff)
Fix file dialog not showing icons
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/file_dialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 8ddf86cc68..905af399b3 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -73,9 +73,9 @@ void FileDialog::_notification(int p_what) {
}
if (p_what == NOTIFICATION_ENTER_TREE) {
- dir_up->set_icon(vbox->get_theme_icon("parent_folder"));
- refresh->set_icon(vbox->get_theme_icon("reload"));
- show_hidden->set_icon(vbox->get_theme_icon("toggle_hidden"));
+ dir_up->set_icon(vbox->get_theme_icon("parent_folder", "FileDialog"));
+ refresh->set_icon(vbox->get_theme_icon("reload", "FileDialog"));
+ show_hidden->set_icon(vbox->get_theme_icon("toggle_hidden", "FileDialog"));
_theme_changed();
}
}
@@ -429,8 +429,8 @@ void FileDialog::update_file_list() {
dir_access->list_dir_begin();
TreeItem *root = tree->create_item();
- Ref<Texture2D> folder = vbox->get_theme_icon("folder");
- const Color folder_color = vbox->get_theme_color("folder_icon_modulate");
+ Ref<Texture2D> folder = vbox->get_theme_icon("folder", "FileDialog");
+ const Color folder_color = vbox->get_theme_color("folder_icon_modulate", "FileDialog");
List<String> files;
List<String> dirs;
@@ -528,7 +528,7 @@ void FileDialog::update_file_list() {
}
if (mode == FILE_MODE_OPEN_DIR) {
- ti->set_custom_color(0, vbox->get_theme_color("files_disabled"));
+ ti->set_custom_color(0, vbox->get_theme_color("files_disabled", "FileDialog"));
ti->set_selectable(0, false);
}
Dictionary d;