mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-19 09:30:52 +02:00
Bug 1981 - Mac: Background of pan/gain sliders wrong color in Light theme.
This commit is contained in:
parent
42efe53884
commit
e4bdd68c70
@ -641,6 +641,16 @@ void LWSlider::DrawToBitmap(wxDC & paintDC)
|
|||||||
wxColour backgroundColour = theTheme.Colour(clrTrackInfo);
|
wxColour backgroundColour = theTheme.Colour(clrTrackInfo);
|
||||||
if( mHW )
|
if( mHW )
|
||||||
backgroundColour = mParent->GetBackgroundColour();
|
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.SetBackground(wxBrush(backgroundColour));
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user