mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Add source icons for JazzRadio and SoundCloud
This commit is contained in:
parent
1cb0869970
commit
57d3dfc96e
@ -41,6 +41,8 @@ QIcon DigitallyImportedUrlHandler::icon() const {
|
||||
return QIcon(":providers/digitallyimported.png");
|
||||
} else if (scheme() == "sky") {
|
||||
return QIcon(":providers/skyfm.png");
|
||||
} else if (scheme() == "jazzradio") {
|
||||
return QIcon(":providers/jazzradio.png");
|
||||
}
|
||||
return QIcon();
|
||||
}
|
||||
|
@ -463,6 +463,8 @@ QPixmap SongSourceDelegate::LookupPixmap(const QUrl& url, const QSize& size) con
|
||||
icon = IconLoader::Load("folder-sound");
|
||||
} else if (url.host() == "api.jamendo.com") {
|
||||
icon = QIcon(":/providers/jamendo.png");
|
||||
} else if (url.host() == "api.soundcloud.com") {
|
||||
icon = QIcon(":/providers/soundcloud.png");
|
||||
}
|
||||
}
|
||||
pixmap = icon.pixmap(size.height());
|
||||
|
Loading…
Reference in New Issue
Block a user