mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Add browse folder and browse file icons
This commit is contained in:
parent
22c20cea6e
commit
44d3ce2c11
9 changed files with 39 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue