1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-12 15:46:25 +01: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. // other platforms.
dc.SetPen(wxPen(wxT("MEDIUM GREY"), 1, wxSOLID)); dc.SetPen(wxPen(wxT("MEDIUM GREY"), 1, wxSOLID));
dc.SetLogicalFunction(wxCOPY); //dc.SetLogicalFunction(wxCOPY);
#else #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 // this seems to be closer than what Windows does than wxINVERT although
// I'm still not sure if it's correct // I'm still not sure if it's correct
dc.SetLogicalFunction(wxAND_REVERSE); //dc.SetLogicalFunction(wxAND_REVERSE);
#endif #endif
wxCoord z; wxCoord z;