* New icons. WIP.
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
BIN
data/images/add.png
Normal file → Executable file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
data/images/automatic-playlist.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
data/images/back.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
data/images/forward.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 1.2 KiB |
BIN
data/images/list-remove.png
Normal file → Executable file
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.2 KiB |
BIN
data/images/recently-played.png
Normal file → Executable file
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
BIN
data/images/station.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 530 B |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,7 +1,5 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>./data/images/add-friend-button-pressed.png</file>
|
||||
<file>./data/images/add-friend-button-rest.png</file>
|
||||
<file>./data/images/avatar-dude-plus.png</file>
|
||||
<file>./data/images/avatar-dude.png</file>
|
||||
<file>./data/images/back-pressed.png</file>
|
||||
@@ -9,7 +7,6 @@
|
||||
<file>./data/images/cover-shadow.png</file>
|
||||
<file>./data/images/loved.png</file>
|
||||
<file>./data/images/not-loved.png</file>
|
||||
<file>./data/images/magnifying-glass.png</file>
|
||||
<file>./data/images/no-album-art-placeholder.png</file>
|
||||
<file>./data/images/now-playing-panel.png</file>
|
||||
<file>./data/images/now-playing-speaker.png</file>
|
||||
@@ -27,7 +24,6 @@
|
||||
<file>./data/images/repeat-off-pressed.png</file>
|
||||
<file>./data/images/repeat-off-rest.png</file>
|
||||
<file>./data/images/search-box-dismiss-x.png</file>
|
||||
<file>./data/images/search-box.png</file>
|
||||
<file>./data/images/seek-and-volume-knob-pressed.png</file>
|
||||
<file>./data/images/seek-and-volume-knob-rest.png</file>
|
||||
<file>./data/images/seek-slider-bkg.png</file>
|
||||
@@ -38,14 +34,6 @@
|
||||
<file>./data/images/shuffle-on-rest.png</file>
|
||||
<file>./data/images/skip-pressed.png</file>
|
||||
<file>./data/images/skip-rest.png</file>
|
||||
<file>./data/images/source-info.png</file>
|
||||
<file>./data/images/source-off-pressed.png</file>
|
||||
<file>./data/images/source-off-rest.png</file>
|
||||
<file>./data/images/source-on-pressed.png</file>
|
||||
<file>./data/images/source-on-rest.png</file>
|
||||
<file>./data/images/status-alert-icon.png</file>
|
||||
<file>./data/images/status-bar-bkg.png</file>
|
||||
<file>./data/images/status-dismiss-x.png</file>
|
||||
<file>./data/images/user-avatar.png</file>
|
||||
<file>./data/images/view-toggle-active-centre.png</file>
|
||||
<file>./data/images/view-toggle-active-left.png</file>
|
||||
@@ -90,6 +78,8 @@
|
||||
<file>./data/images/music-settings.png</file>
|
||||
<file>./data/images/resolvers-settings.png</file>
|
||||
<file>./data/images/lastfm-settings.png</file>
|
||||
<file>./data/images/automatic-playlist.png</file>
|
||||
<file>./data/images/station.png</file>
|
||||
<file>./data/stylesheets/topbar-radiobuttons.css</file>
|
||||
<file>./data/icons/tomahawk-icon-16x16.png</file>
|
||||
<file>./data/icons/tomahawk-icon-32x32.png</file>
|
||||
|
@@ -22,10 +22,10 @@
|
||||
#include <QPainter>
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#define CORNER_ROUNDNESS 16.0
|
||||
#define CORNER_ROUNDNESS 8.0
|
||||
#define FADING_DURATION 500
|
||||
#define FONT_SIZE 16
|
||||
#define OPACITY 0.86
|
||||
#define OPACITY 0.70
|
||||
|
||||
|
||||
OverlayWidget::OverlayWidget( QWidget* parent )
|
||||
@@ -87,7 +87,7 @@ OverlayWidget::show( int timeoutSecs )
|
||||
|
||||
QPropertyAnimation* animation = new QPropertyAnimation( this, "opacity" );
|
||||
animation->setDuration( FADING_DURATION );
|
||||
animation->setEndValue( OPACITY );
|
||||
animation->setEndValue( 1.0 );
|
||||
animation->start();
|
||||
|
||||
if( timeoutSecs > 0 )
|
||||
@@ -134,7 +134,7 @@ OverlayWidget::paintEvent( QPaintEvent* event )
|
||||
|
||||
QPen pen( palette().dark().color(), .5 );
|
||||
p.setPen( pen );
|
||||
p.setBrush( palette().highlight() );
|
||||
p.setBrush( QColor( 30, 30, 30, 255.0 * OPACITY ) );
|
||||
|
||||
p.drawRoundedRect( r, CORNER_ROUNDNESS, CORNER_ROUNDNESS );
|
||||
|
||||
@@ -160,6 +160,7 @@ OverlayWidget::paintEvent( QPaintEvent* event )
|
||||
fm = QFontMetricsF( f );
|
||||
textHeight = fm.boundingRect( textRect, Qt::AlignCenter | Qt::TextWordWrap, text() ).height();
|
||||
}
|
||||
|
||||
p.setFont( f );
|
||||
p.setPen( palette().highlightedText().color() );
|
||||
p.drawText( r.adjusted( 8, 8, -8, -8 ), text(), to );
|
||||
|
@@ -320,3 +320,13 @@ DynamicPlaylistItem::willAcceptDrag( const QMimeData* data ) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
QIcon
|
||||
DynamicPlaylistItem::icon() const
|
||||
{
|
||||
if( m_dynplaylist->mode() == OnDemand ) {
|
||||
return QIcon( RESPATH "images/station.png" );
|
||||
} else {
|
||||
return QIcon( RESPATH "images/automatic-playlist.png" );
|
||||
}
|
||||
}
|
||||
|
@@ -62,6 +62,7 @@ public:
|
||||
virtual bool willAcceptDrag( const QMimeData* data ) const;
|
||||
virtual void activate();
|
||||
virtual int peerSortValue() const;
|
||||
virtual QIcon icon() const;
|
||||
|
||||
private slots:
|
||||
void onDynamicPlaylistLoaded( Tomahawk::DynamicPlaylistRevision revision );
|
||||
|