diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-12 13:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 13:36:06 +0200 |
commit | 1e5a02f0062b6bbf2edb27151319c6ec4d6a1762 (patch) | |
tree | 5cdea062aaa706cbcbca1fde3ff595cf11e46379 | |
parent | 97fb28df0d4ee0625f1dddecf47ec9f30f607157 (diff) | |
parent | 9f6b470ea854326ebc800bc86fb7712ecdef6055 (diff) |
Merge pull request #29599 from Calinou/assetlib-project-icon-loading
Display a "loading" placeholder while icons are loading in the assetlib
-rw-r--r-- | editor/icons/icon_project_icon_loading.svg | 1 | ||||
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/editor/icons/icon_project_icon_loading.svg b/editor/icons/icon_project_icon_loading.svg new file mode 100644 index 0000000000..3802b67654 --- /dev/null +++ b/editor/icons/icon_project_icon_loading.svg @@ -0,0 +1 @@ +<svg height="64" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg"><path d="m8 0c-4.432 0-8 3.568-8 8v48c0 4.432 3.568 8 8 8h48c4.432 0 8-3.568 8-8v-48c0-4.432-3.568-8-8-8z" fill="#e0e0e0" fill-opacity=".188235"/></svg>
\ No newline at end of file diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 0923628b1f..1503258ff5 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -58,7 +58,7 @@ void EditorAssetLibraryItem::_notification(int p_what) { if (p_what == NOTIFICATION_ENTER_TREE) { - icon->set_normal_texture(get_icon("DefaultProjectIcon", "EditorIcons")); + icon->set_normal_texture(get_icon("ProjectIconLoading", "EditorIcons")); category->add_color_override("font_color", Color(0.5, 0.5, 0.5)); author->add_color_override("font_color", Color(0.5, 0.5, 0.5)); price->add_color_override("font_color", Color(0.5, 0.5, 0.5)); |