mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-12 06:01:13 +02:00
Make 'click to' text white on grey. Draw slider thumb.
This commit is contained in:
parent
ae1605a7fd
commit
d7b6761215
@ -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
|
||||
//
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user