Skip to content

Commit

Permalink
Merge pull request LMMS#2686 from Umcaruje/bbtrackmute
Browse files Browse the repository at this point in the history
Grey out muted patterns in the BB editor
  • Loading branch information
tresf committed Mar 19, 2016
2 parents 9a44eaf + 23cd300 commit 97c7208
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tracks/Pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,14 @@ void PatternView::paintEvent( QPaintEvent * )
p.drawPixmap( x, y, stepoff );
}
} // end for loop

// draw a transparent rectangle over muted patterns
if ( muted )
{
p.setBrush( mutedBackgroundColor() );
p.setOpacity( 0.3 );
p.drawRect( 0, 0, width(), height() );
}
}

// bar lines
Expand Down

0 comments on commit 97c7208

Please sign in to comment.