mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +02:00
Better fix for bug 175 (GTK+ slider background colour)
This commit is contained in:
parent
f453aaad4f
commit
29523e7aee
@ -598,6 +598,13 @@ void LWSlider::OnPaint(wxDC &dc, bool selected)
|
||||
dc.Clear();
|
||||
}
|
||||
#endif
|
||||
#if defined(__WXGTK__)
|
||||
if (mHW)
|
||||
{
|
||||
dc.SetBackground(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));
|
||||
dc.Clear();
|
||||
}
|
||||
#endif
|
||||
|
||||
dc.DrawBitmap(*mBitmap, mLeft, mTop, true);
|
||||
if (mOrientation == wxHORIZONTAL)
|
||||
@ -721,13 +728,7 @@ void LWSlider::Draw()
|
||||
TransparentColour = theTheme.Colour( clrTrackInfo );
|
||||
#endif
|
||||
|
||||
#ifdef __WXGTK__
|
||||
// AWD: this is from a patch posted by B. Drung on bug #175, but it breaks
|
||||
// things on Windows
|
||||
dc->SetBackground( wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND) );
|
||||
#else
|
||||
dc->SetBackground( wxBrush( TransparentColour ) );
|
||||
#endif
|
||||
dc->Clear();
|
||||
|
||||
// Draw the line along which the thumb moves.
|
||||
|
Loading…
x
Reference in New Issue
Block a user