mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
* Changed sidebar background & font.
This commit is contained in:
@@ -74,7 +74,7 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
setContentsMargins( 0, 0, 0, 0 );
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
|
|
||||||
QFont fnt;
|
QFont fnt = font();
|
||||||
QFontMetrics fm( fnt );
|
QFontMetrics fm( fnt );
|
||||||
// This is sort of the longest string in there. With translations
|
// This is sort of the longest string in there. With translations
|
||||||
// we will never get it right so setting it to something reasonable for the average case
|
// we will never get it right so setting it to something reasonable for the average case
|
||||||
@@ -134,11 +134,8 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
|
|
||||||
showOfflineSources( TomahawkSettings::instance()->showOfflineSources() );
|
showOfflineSources( TomahawkSettings::instance()->showOfflineSources() );
|
||||||
|
|
||||||
// Light-blue sourcetree on osx
|
setStyleSheet( "SourceTreeView:active { background: #F2F2F2; } "
|
||||||
#ifdef Q_OS_MAC
|
"SourceTreeView { background: #F2F2F2; } " );
|
||||||
setStyleSheet( "SourceTreeView:active { background: #DDE4EB; } "
|
|
||||||
"SourceTreeView { background: #EDEDED; } " );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
connect( this, SIGNAL( latchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( latchRequest( Tomahawk::source_ptr ) ) );
|
connect( this, SIGNAL( latchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( latchRequest( Tomahawk::source_ptr ) ) );
|
||||||
connect( this, SIGNAL( unlatchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( unlatchRequest( Tomahawk::source_ptr ) ) );
|
connect( this, SIGNAL( unlatchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( unlatchRequest( Tomahawk::source_ptr ) ) );
|
||||||
|
Reference in New Issue
Block a user