From d2187b42ccce936b9b1fea4b1684b110a6bf6ece Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 16 Jun 2017 14:50:50 +0100 Subject: [PATCH] Make FocusRect visible on Dark Themes. Now uses clrTrackPanelText for the focus rect dots. --- src/AColor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/AColor.cpp b/src/AColor.cpp index 6afdd6dcf..048888e4e 100644 --- a/src/AColor.cpp +++ b/src/AColor.cpp @@ -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;