mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-19 14:38:22 -04:00
Standardize the color of TCO bar markers (#3054)
This commit is contained in:
committed by
Rebecca DeField
parent
68df69d535
commit
1eded63a19
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user