mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 02:14:21 +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/zoom-in.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/32x32/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"),
|
||||
album_icon_(":/icons/22x22/x-clementine-album.png"),
|
||||
no_cover_icon_(":nocover.png"),
|
||||
playlists_dir_icon_(IconLoader::Load("folder")),
|
||||
playlist_icon_(IconLoader::Load("view-media-playlist"))
|
||||
playlists_dir_icon_(IconLoader::Load("folder-sound")),
|
||||
playlist_icon_(":/icons/22x22/x-clementine-albums.png")
|
||||
{
|
||||
root_->lazy_loaded = true;
|
||||
|
||||
@ -343,7 +343,7 @@ QVariant LibraryModel::data(const LibraryItem* item, int role) const {
|
||||
return item->DisplayText();
|
||||
|
||||
case Qt::DecorationRole:
|
||||
switch (item->type)
|
||||
switch (item->type) {
|
||||
case LibraryItem::Type_PlaylistContainer:
|
||||
return playlists_dir_icon_;
|
||||
case LibraryItem::Type_Container:
|
||||
@ -356,10 +356,12 @@ QVariant LibraryModel::data(const LibraryItem* item, int role) const {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case LibraryItem::Type_SmartPlaylist:
|
||||
return playlist_icon_;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case Role_Type:
|
||||
|
Loading…
Reference in New Issue
Block a user