mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +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();
|
dc.Clear();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__WXGTK__)
|
||||||
|
if (mHW)
|
||||||
|
{
|
||||||
|
dc.SetBackground(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));
|
||||||
|
dc.Clear();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dc.DrawBitmap(*mBitmap, mLeft, mTop, true);
|
dc.DrawBitmap(*mBitmap, mLeft, mTop, true);
|
||||||
if (mOrientation == wxHORIZONTAL)
|
if (mOrientation == wxHORIZONTAL)
|
||||||
@ -721,13 +728,7 @@ void LWSlider::Draw()
|
|||||||
TransparentColour = theTheme.Colour( clrTrackInfo );
|
TransparentColour = theTheme.Colour( clrTrackInfo );
|
||||||
#endif
|
#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 ) );
|
dc->SetBackground( wxBrush( TransparentColour ) );
|
||||||
#endif
|
|
||||||
dc->Clear();
|
dc->Clear();
|
||||||
|
|
||||||
// Draw the line along which the thumb moves.
|
// Draw the line along which the thumb moves.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user