From b24560a1340c5e9d23b366e58bc8efaeb0347fb4 Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 16 Jun 2017 15:37:06 +0100 Subject: [PATCH] Completion of FocusRect fix. Fix is needed on Mac too. --- src/AColor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AColor.cpp b/src/AColor.cpp index 048888e4e..a94635395 100644 --- a/src/AColor.cpp +++ b/src/AColor.cpp @@ -179,13 +179,14 @@ void AColor::DrawFocus(wxDC & dc, wxRect & rect) // Why must this be different? // Otherwise nothing is visible if you do as for the // other platforms. - dc.SetPen(wxPen(wxT("MEDIUM GREY"), 1, wxSOLID)); + UseThemeColour( &dc, clrTrackPanelText ); + //dc.SetPen(wxPen(wxT("MEDIUM GREY"), 1, wxSOLID)); //dc.SetLogicalFunction(wxCOPY); #else UseThemeColour( &dc, clrTrackPanelText ); - //dc.SetPen(wxPen(wxT("MEDIUM GREY"), 0, wxSOLID)); + //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);