Use the bigger nocover image from amarok 2

This commit is contained in:
David Sansome 2010-06-17 22:47:25 +00:00
parent ea77f022e4
commit 43575218a2
4 changed files with 2 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -79,6 +79,7 @@ AlbumCoverManager::AlbumCoverManager(NetworkAccessManager* network,
QImage square_nocover(120, 120, QImage::Format_ARGB32);
square_nocover.fill(0);
QPainter p(&square_nocover);
p.setOpacity(0.4);
p.drawImage((120 - nocover.width()) / 2, (120 - nocover.height()) / 2, nocover);
p.end();
no_cover_icon_ = QPixmap::fromImage(square_nocover);

View File

@ -54,7 +54,6 @@ NowPlayingWidget::NowPlayingWidget(QWidget *parent)
cover_height_(0),
show_hide_animation_(new QTimeLine(500, this)),
fade_animation_(new QTimeLine(1000, this)),
no_cover_(":nocover.png"),
load_cover_id_(0),
details_(new QTextDocument(this)),
previous_track_opacity_(0.0)
@ -107,7 +106,6 @@ void NowPlayingWidget::CoverLoaderInitialised() {
UpdateHeight();
cover_loader_->Worker()->SetNetwork(network_);
cover_loader_->Worker()->SetPadOutputImage(true);
cover_loader_->Worker()->SetDefaultOutputImage(QImage(":nocover.png"));
connect(cover_loader_->Worker().get(), SIGNAL(ImageLoaded(quint64,QImage)),
SLOT(AlbumArtLoaded(quint64,QImage)));
}
@ -132,6 +130,7 @@ void NowPlayingWidget::UpdateHeight() {
// Tell the cover loader what size we want the images in
cover_loader_->Worker()->SetDesiredHeight(cover_height_);
cover_loader_->Worker()->SetDefaultOutputImage(QImage(":nocover.png"));
// Re-fetch the current image
load_cover_id_ = cover_loader_->Worker()->LoadImageAsync(
@ -269,7 +268,6 @@ void NowPlayingWidget::DrawContents(QPainter *p) {
width(), height() - (gradient_mid - kGradientHead), gradient);
// Draw the text on top
p->setPen(Qt::white);
p->translate(x_offset, height() - text_height);
details_->drawContents(p);
p->translate(-x_offset, -height() + text_height);

View File

@ -97,8 +97,6 @@ private:
QTimeLine* show_hide_animation_;
QTimeLine* fade_animation_;
QPixmap no_cover_;
// Information about the current track
Song metadata_;
quint64 load_cover_id_;