diff options
author | toger5 <toger5@hotmail.de> | 2017-08-30 01:03:13 +0200 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-08-30 21:47:09 +0200 |
commit | 7793bfc544deb6517ca68c3e295eaba27bf74910 (patch) | |
tree | 4f530ed2d100db352ae60f2893a437766cb8f750 /editor/filesystem_dock.cpp | |
parent | 97d7d84cac161e5cad110ab0edc3b7ee7d9a20a4 (diff) |
added icon updating to most ui elements
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index d0d8b0f0cd..8d11679509 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -199,11 +199,33 @@ void FileSystemDock::_notification(int p_what) { int new_mode = int(EditorSettings::get_singleton()->get("docks/filesystem/display_mode")); + //_update_icons + + button_reload->set_icon(get_icon("Reload", "EditorIcons")); + button_favorite->set_icon(get_icon("Favorites", "EditorIcons")); + button_back->set_icon(get_icon("Filesystem", "EditorIcons")); + if (display_mode == DISPLAY_THUMBNAILS) { + button_display_mode->set_icon(get_icon("FileList", "EditorIcons")); + } else { + button_display_mode->set_icon(get_icon("FileThumbnail", "EditorIcons")); + } + + search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); + + button_hist_next->set_icon(get_icon("Forward", "EditorIcons")); + button_hist_prev->set_icon(get_icon("Back", "EditorIcons")); + + Theme::get_default()->clear_icon("ResizedFolder", "EditorIcons"); + Theme::get_default()->clear_icon("ResizedFile", "EditorIcons"); + if (new_mode != display_mode) { set_display_mode(new_mode); } else { _update_files(true); } + + _update_tree(); + } break; } } |