diff options
author | Adam Scott <ascott.ca@gmail.com> | 2024-02-25 13:10:29 -0500 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2024-03-12 09:57:59 -0400 |
commit | 44d3ce2c11b844d919e363f5cb15f1c03ad3f77e (patch) | |
tree | 3a717033c09a1171f0171a8669d328389b0bec6f /editor/editor_properties.cpp | |
parent | 22c20cea6e59a8a95585adb866c007a55c428806 (diff) | |
download | redot-engine-44d3ce2c11b844d919e363f5cb15f1c03ad3f77e.tar.gz |
Add browse folder and browse file icons
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r-- | editor/editor_properties.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 01455fec17..0e3b408996 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -534,7 +534,11 @@ void EditorPropertyPath::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: case NOTIFICATION_THEME_CHANGED: { - path_edit->set_icon(get_editor_theme_icon(SNAME("Folder"))); + if (folder) { + path_edit->set_icon(get_editor_theme_icon(SNAME("FolderBrowse"))); + } else { + path_edit->set_icon(get_editor_theme_icon(SNAME("FileBrowse"))); + } } break; } } |