Standardize the color of TCO bar markers (#3054)

This commit is contained in:
Umcaruje
2016-09-30 00:05:37 +02:00
committed by Rebecca DeField
parent 68df69d535
commit 1eded63a19
2 changed files with 2 additions and 6 deletions

View File

@@ -251,6 +251,7 @@ void BBTCOView::paintEvent( QPaintEvent * )
// bar lines
const int lineSize = 3;
p.setPen( c.darker( 200 ) );
tact_t t = Engine::getBBTrackContainer()->lengthOfBB( m_bbTCO->bbTrackIndex() );
if( m_bbTCO->length() > MidiTime::ticksPerTact() && t > 0 )
@@ -259,9 +260,7 @@ void BBTCOView::paintEvent( QPaintEvent * )
x < width() - 2;
x += static_cast<int>( t * pixelsPerTact() ) )
{
p.setPen( c.light( 80 ) );
p.drawLine( x, TCO_BORDER_WIDTH, x, TCO_BORDER_WIDTH + lineSize );
p.setPen( c.light( 120 ) );
p.drawLine( x, rect().bottom() - ( TCO_BORDER_WIDTH + lineSize ),
x, rect().bottom() - TCO_BORDER_WIDTH );
}
@@ -666,4 +665,3 @@ void BBTrackView::clickedTrackLabel()
Engine::getBBTrackContainer()->setCurrentBB( m_bbTrack->index() );
gui->getBBEditor()->show();
}

View File

@@ -1050,7 +1050,7 @@ void PatternView::paintEvent( QPaintEvent * )
// bar lines
const int lineSize = 3;
p.setPen( c.darker( 300 ) );
p.setPen( c.darker( 200 ) );
for( tact_t t = 1; t < m_pat->length().getTact(); ++t )
{
@@ -1114,5 +1114,3 @@ void PatternView::paintEvent( QPaintEvent * )
painter.drawPixmap( 0, 0, m_paintPixmap );
}