1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 17:10:55 +02:00

Make FocusRect visible on Dark Themes.

Now uses clrTrackPanelText for the focus rect dots.
This commit is contained in:
James Crook 2017-06-16 14:50:50 +01:00
parent e9f525defa
commit d2187b42cc

View File

@ -181,13 +181,14 @@ void AColor::DrawFocus(wxDC & dc, wxRect & rect)
// other platforms.
dc.SetPen(wxPen(wxT("MEDIUM GREY"), 1, wxSOLID));
dc.SetLogicalFunction(wxCOPY);
//dc.SetLogicalFunction(wxCOPY);
#else
dc.SetPen(wxPen(wxT("MEDIUM GREY"), 0, wxSOLID));
UseThemeColour( &dc, clrTrackPanelText );
//dc.SetPen(wxPen(wxT("MEDIUM GREY"), 0, wxSOLID));
// this seems to be closer than what Windows does than wxINVERT although
// I'm still not sure if it's correct
dc.SetLogicalFunction(wxAND_REVERSE);
//dc.SetLogicalFunction(wxAND_REVERSE);
#endif
wxCoord z;