1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

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