1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

Line to mark off scrub ruler.

Provides a clear boundary between scrub ruler and quick select ruler, even if the theme colours have been warped to be very similar.
Thanks to Gale for spotting this problem on Mac.
This commit is contained in:
James Crook
2017-04-30 17:22:20 +01:00
parent 5088881a69
commit 5e28e3fe6d
3 changed files with 8 additions and 4 deletions

View File

@@ -281,13 +281,15 @@ void AColor::BevelTrackInfo(wxDC & dc, bool up, const wxRect & r)
#endif
}
void AColor::UseThemeColour( wxDC * dc, int iIndex )
void AColor::UseThemeColour( wxDC * dc, int iIndex, int index2 )
{
if (!inited)
Init();
wxColour col = theTheme.Colour( iIndex );
spareBrush.SetColour( col );
dc->SetBrush( spareBrush );
if( index2 != -1)
col = theTheme.Colour( index2 );
sparePen.SetColour( col );
dc->SetPen( sparePen );
}