Skip to content
Snippets Groups Projects
Commit e4bdd68c authored by James Crook's avatar James Crook
Browse files

Bug 1981 - Mac: Background of pan/gain sliders wrong color in Light theme.

parent 42efe538
No related branches found
No related tags found
No related merge requests found
......@@ -641,6 +641,16 @@ void LWSlider::DrawToBitmap(wxDC & paintDC)
wxColour backgroundColour = theTheme.Colour(clrTrackInfo);
if( mHW )
backgroundColour = mParent->GetBackgroundColour();
// Bug 1981 workaround.
// On Mac the colour may end up being the system background colour.
// For some reason (not yet known) the mask does not work in that case.
// So perturb the colour very slightly to work around that.
// (we can actually perterb it a lot before the anti-aliassing starts
// to look bad)
backgroundColour = wxColour( backgroundColour.Red(),
backgroundColour.Green(),
backgroundColour.Blue() ^1 );
dc.SetBackground(wxBrush(backgroundColour));
dc.Clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment