diff --git a/LiteEditor/app.cpp b/LiteEditor/app.cpp index e3636ff315..cf9ad666c8 100644 --- a/LiteEditor/app.cpp +++ b/LiteEditor/app.cpp @@ -361,7 +361,7 @@ bool CodeLiteApp::OnInit() ::wxInitAllImageHandlers(); -#if defined(__WXMSW__) && !defined(_MSC_VER) +#if defined(__WXMSW__) && wxCHECK_VERSION(3, 3, 0) if (clConfig::Get().Read("CodeLiteAppearance", 0) == 1) { // force dark MSWEnableDarkMode(wxApp::DarkMode_Always); diff --git a/Plugin/drawingutils.cpp b/Plugin/drawingutils.cpp index 88311aaa60..502addf02b 100644 --- a/Plugin/drawingutils.cpp +++ b/Plugin/drawingutils.cpp @@ -406,7 +406,11 @@ wxBrush DrawingUtils::GetStippleBrush() wxColour bgColour = clSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); wxBitmap bmpStipple(3, 3); wxColour lightPen = bgColour.ChangeLightness(105); +#if wxCHECK_VERSION(3, 3, 0) wxColour darkPen = clSystemSettings::Get().SelectLightDark(bgColour.ChangeLightness(95), *wxBLACK); +#else + wxColour darkPen = clSystemSettings::Get().IsDark() ? bgColour.ChangeLightness(95) : *wxBLACK; +#endif #else wxColour bgColour = clSystemSettings::GetDefaultPanelColour(); wxBitmap bmpStipple(3, 3);