FileDialog: add Back/Forward buttons, add message for inaccessible folders.

This commit is contained in:
bruvzg 2021-03-19 14:01:03 +02:00
parent 0339200972
commit b202a0dd2a
No known key found for this signature in database
GPG key ID: 009E1BFE42239B95
8 changed files with 134 additions and 0 deletions

View file

@ -1260,6 +1260,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
// FileDialog
theme->set_icon("folder", "FileDialog", theme->get_icon("Folder", "EditorIcons"));
theme->set_icon("parent_folder", "FileDialog", theme->get_icon("ArrowUp", "EditorIcons"));
theme->set_icon("back_folder", "FileDialog", theme->get_icon("Back", "EditorIcons"));
theme->set_icon("forward_folder", "FileDialog", theme->get_icon("Forward", "EditorIcons"));
theme->set_icon("reload", "FileDialog", theme->get_icon("Reload", "EditorIcons"));
theme->set_icon("toggle_hidden", "FileDialog", theme->get_icon("GuiVisibilityVisible", "EditorIcons"));
// Use a different color for folder icons to make them easier to distinguish from files.