mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +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");
|
return QIcon(":providers/digitallyimported.png");
|
||||||
} else if (scheme() == "sky") {
|
} else if (scheme() == "sky") {
|
||||||
return QIcon(":providers/skyfm.png");
|
return QIcon(":providers/skyfm.png");
|
||||||
|
} else if (scheme() == "jazzradio") {
|
||||||
|
return QIcon(":providers/jazzradio.png");
|
||||||
}
|
}
|
||||||
return QIcon();
|
return QIcon();
|
||||||
}
|
}
|
||||||
|
@ -463,6 +463,8 @@ QPixmap SongSourceDelegate::LookupPixmap(const QUrl& url, const QSize& size) con
|
|||||||
icon = IconLoader::Load("folder-sound");
|
icon = IconLoader::Load("folder-sound");
|
||||||
} else if (url.host() == "api.jamendo.com") {
|
} else if (url.host() == "api.jamendo.com") {
|
||||||
icon = QIcon(":/providers/jamendo.png");
|
icon = QIcon(":/providers/jamendo.png");
|
||||||
|
} else if (url.host() == "api.soundcloud.com") {
|
||||||
|
icon = QIcon(":/providers/soundcloud.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pixmap = icon.pixmap(size.height());
|
pixmap = icon.pixmap(size.height());
|
||||||
|
Loading…
Reference in New Issue
Block a user