diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-31 11:47:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 11:47:18 +0200 |
commit | f00760b22cee9cb1472dd7f02820556d273d7919 (patch) | |
tree | 65153e657738dc96809913b790ec00630c7f4476 /editor/filesystem_dock.cpp | |
parent | f1e3dec4422a114d42ebb29daefa8c3d4bf83999 (diff) | |
parent | ff0a149de94b723a6013fb224ec5a8d0bfada68d (diff) |
Merge pull request #10382 from toger5/dark_icons
Light Theme
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 9aa856119d..0ad7b25e4a 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; } } |