From fadd8bd63a7c0fdccaa2616d33efa9ff040184b5 Mon Sep 17 00:00:00 2001 From: Eran Ifrah Date: Mon, 6 Jan 2025 23:44:46 +0200 Subject: [PATCH] Fixed: under Windows 11: side bar icons are dimmed (when dark mode is used) Signed-off-by: Eran Ifrah --- Plugin/clSideBarCtrl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Plugin/clSideBarCtrl.cpp b/Plugin/clSideBarCtrl.cpp index 480f5c41e5..cfb47ac080 100644 --- a/Plugin/clSideBarCtrl.cpp +++ b/Plugin/clSideBarCtrl.cpp @@ -223,11 +223,7 @@ void clSideBarCtrl::AddTool(const wxString& label, const wxString& bmpname, size clWARNING() << "clSideBarCtrl::AddPage(): Invalid bitmap:" << bmpname << endl; } - const wxBitmap& bmp = clSystemSettings::GetAppearance().IsDark() - // Under Windows 11, the toolbar selection is "very light" - // so use the light theme bitmap - ? (IsWindows11DarkMode() ? light_theme_bmp : dark_theme_bmp) - : light_theme_bmp; + const wxBitmap& bmp = clSystemSettings::GetAppearance().IsDark() ? dark_theme_bmp : light_theme_bmp; auto tool = m_toolbar->AddTool(wxID_ANY, label, wxBitmapBundle(bmp), label, wxITEM_CHECK); auto tool_id = tool->GetId();