From 2135973f7d1bc121fb7a523bc16f2ebfcd1c82b1 Mon Sep 17 00:00:00 2001 From: ali kettab Date: Sun, 18 Feb 2024 21:29:47 +0100 Subject: [PATCH] wxAUI: fix venetian blinds hint in dark mode Also a small aesthetic change is made to make it easier to discern. Closes #24338. --- src/aui/framemanager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 939de7b4d3..c88e3070da 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -79,10 +79,12 @@ const int auiToolBarLayer = 10; static wxBitmap wxCreateVenetianBlindsBitmap(wxByte r, wxByte g, wxByte b, wxByte a) { - unsigned char data[] = { r,g,b, 0,0,0, r,g,b }; - unsigned char alpha[] = { a, 128, a }; + const unsigned char c = wxSystemSettings::GetAppearance().IsDark() ? 220 : 5; - wxImage img(1,3,data,true); + unsigned char data[] = { r,g,b, r,g,b, c,c,c, c,c,c }; + unsigned char alpha[] = { a, a, 200, 200 }; + + wxImage img(1,4,data,true); img.SetAlpha(alpha,true); return wxBitmap(img); }