mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 22:40:01 +01:00
Better smart playlist icons
This commit is contained in:
parent
a93a4afe3b
commit
353485e34e
@ -172,6 +172,7 @@
|
|||||||
<file>icons/48x48/x-clementine-shuffle.png</file>
|
<file>icons/48x48/x-clementine-shuffle.png</file>
|
||||||
<file>icons/48x48/zoom-in.png</file>
|
<file>icons/48x48/zoom-in.png</file>
|
||||||
<file>icons/22x22/x-clementine-album.png</file>
|
<file>icons/22x22/x-clementine-album.png</file>
|
||||||
|
<file>icons/22x22/x-clementine-albums.png</file>
|
||||||
<file>icons/22x22/x-clementine-artist.png</file>
|
<file>icons/22x22/x-clementine-artist.png</file>
|
||||||
<file>icons/32x32/x-clementine-artist.png</file>
|
<file>icons/32x32/x-clementine-artist.png</file>
|
||||||
<file>icons/48x48/x-clementine-artist.png</file>
|
<file>icons/48x48/x-clementine-artist.png</file>
|
||||||
|
BIN
data/icons/22x22/x-clementine-albums.png
Normal file
BIN
data/icons/22x22/x-clementine-albums.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -52,8 +52,8 @@ LibraryModel::LibraryModel(LibraryBackend* backend, QObject* parent)
|
|||||||
artist_icon_(":/icons/22x22/x-clementine-artist.png"),
|
artist_icon_(":/icons/22x22/x-clementine-artist.png"),
|
||||||
album_icon_(":/icons/22x22/x-clementine-album.png"),
|
album_icon_(":/icons/22x22/x-clementine-album.png"),
|
||||||
no_cover_icon_(":nocover.png"),
|
no_cover_icon_(":nocover.png"),
|
||||||
playlists_dir_icon_(IconLoader::Load("folder")),
|
playlists_dir_icon_(IconLoader::Load("folder-sound")),
|
||||||
playlist_icon_(IconLoader::Load("view-media-playlist"))
|
playlist_icon_(":/icons/22x22/x-clementine-albums.png")
|
||||||
{
|
{
|
||||||
root_->lazy_loaded = true;
|
root_->lazy_loaded = true;
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ QVariant LibraryModel::data(const LibraryItem* item, int role) const {
|
|||||||
return item->DisplayText();
|
return item->DisplayText();
|
||||||
|
|
||||||
case Qt::DecorationRole:
|
case Qt::DecorationRole:
|
||||||
switch (item->type)
|
switch (item->type) {
|
||||||
case LibraryItem::Type_PlaylistContainer:
|
case LibraryItem::Type_PlaylistContainer:
|
||||||
return playlists_dir_icon_;
|
return playlists_dir_icon_;
|
||||||
case LibraryItem::Type_Container:
|
case LibraryItem::Type_Container:
|
||||||
@ -356,10 +356,12 @@ QVariant LibraryModel::data(const LibraryItem* item, int role) const {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case LibraryItem::Type_SmartPlaylist:
|
case LibraryItem::Type_SmartPlaylist:
|
||||||
return playlist_icon_;
|
return playlist_icon_;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Role_Type:
|
case Role_Type:
|
||||||
|
Loading…
Reference in New Issue
Block a user