From e11c1cb8fc8f792b85b663683ad3b4cfee8e9049 Mon Sep 17 00:00:00 2001 From: Vesa Date: Sat, 5 Apr 2014 17:28:03 +0300 Subject: [PATCH] For consistency, define text colour of bb-tracks in CSS too --- data/themes/default/style.css | 7 ++++++- src/tracks/bb_track.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/data/themes/default/style.css b/data/themes/default/style.css index 66f4f7cb0..572139dfc 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -499,7 +499,12 @@ SampleTCOView { AutomationPatternView { color: #99afff; qproperty-fgColor: rgb( 204, 215, 255 ); - qproperty-textColor: rgb( 255, 255, 255 ); + qproperty-textColor: rgb( 255, 255, 255 ); +} + +/* bb-pattern */ +bbTCOView { + qproperty-textColor: rgb( 255, 255, 255 ); } /* Plugins */ diff --git a/src/tracks/bb_track.cpp b/src/tracks/bb_track.cpp index cc156599e..15bace3fc 100644 --- a/src/tracks/bb_track.cpp +++ b/src/tracks/bb_track.cpp @@ -219,7 +219,7 @@ void bbTCOView::paintEvent( QPaintEvent * ) p.setPen( QColor( 0, 0, 0 ) ); p.drawText( 4, p.fontMetrics().height()+1, m_bbTCO->name() ); - p.setPen( QColor( 255, 255, 255 ) ); + p.setPen( textColor() ); p.drawText( 3, p.fontMetrics().height(), m_bbTCO->name() ); if( m_bbTCO->isMuted() )