1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 14:11:10 +02:00

Make 'click to' text white on grey. Draw slider thumb.

This commit is contained in:
James Crook 2016-06-27 00:45:19 +01:00
parent ae1605a7fd
commit d7b6761215
2 changed files with 10 additions and 6 deletions

View File

@ -676,6 +676,9 @@ void LWSlider::Draw(wxDC & paintDC)
// Set up the memory DC
wxMemoryDC dc;
mThumbBitmap = new wxBitmap( theTheme.Bitmap( bmpSliderThumb ));
#if 0
// Create the bitmap
mThumbBitmap = new wxBitmap();
mThumbBitmap->Create(mThumbWidth, mThumbHeight, paintDC);
@ -738,6 +741,7 @@ void LWSlider::Draw(wxDC & paintDC)
mThumbBitmap->SetMask(new wxMask(*mThumbBitmap, transparentColour));
#endif
#endif
//
// Now the background bitmap
//

View File

@ -639,12 +639,12 @@ void Meter::OnPaint(wxPaintEvent & WXUNUSED(event))
Siz.GetHeight(),
Siz.GetWidth() );
destDC.SetBrush( *wxWHITE_BRUSH );
destDC.SetPen( *wxGREY_PEN );
destDC.SetBrush( *wxGREY_BRUSH );
destDC.SetPen( *wxWHITE_PEN );
destDC.DrawRectangle( r );
destDC.SetBackgroundMode( wxTRANSPARENT );
r.SetTop( r.GetBottom() + (gap / 2) );
destDC.SetTextForeground( wxColour(0,0,0) );
destDC.SetTextForeground( clrText );
destDC.DrawRotatedText( Text, r.GetPosition(), 90 );
break;
}
@ -658,13 +658,13 @@ void Meter::OnPaint(wxPaintEvent & WXUNUSED(event))
Siz.GetWidth(),
Siz.GetHeight() );
destDC.SetBrush( *wxWHITE_BRUSH );
destDC.SetPen( *wxGREY_PEN );
destDC.SetBrush( *wxGREY_BRUSH );
destDC.SetPen( *wxWHITE_PEN );
destDC.DrawRectangle( r );
destDC.SetBackgroundMode( wxTRANSPARENT );
r.SetLeft( r.GetLeft() + (gap / 2) );
r.SetTop( r.GetTop() + (gap / 2));
destDC.SetTextForeground( wxColour(0,0,0) );
destDC.SetTextForeground( clrText );
destDC.DrawText( Text, r.GetPosition() );
break;
}