Add browse folder and browse file icons

This commit is contained in:
Adam Scott 2024-02-25 13:10:29 -05:00
parent 22c20cea6e
commit 44d3ce2c11
No known key found for this signature in database
GPG key ID: 1352C2919D96DDDF
9 changed files with 39 additions and 3 deletions

View file

@ -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;
}
}