wxAUI: fix venetian blinds hint in dark mode

Also a small aesthetic change is made to make it easier to discern.

Closes #24338.
This commit is contained in:
ali kettab 2024-02-18 21:29:47 +01:00 committed by Vadim Zeitlin
parent f24b3d5483
commit 2135973f7d

View file

@ -79,10 +79,12 @@ const int auiToolBarLayer = 10;
static wxBitmap wxCreateVenetianBlindsBitmap(wxByte r, wxByte g, wxByte b, wxByte a) static wxBitmap wxCreateVenetianBlindsBitmap(wxByte r, wxByte g, wxByte b, wxByte a)
{ {
unsigned char data[] = { r,g,b, 0,0,0, r,g,b }; const unsigned char c = wxSystemSettings::GetAppearance().IsDark() ? 220 : 5;
unsigned char alpha[] = { a, 128, a };
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); img.SetAlpha(alpha,true);
return wxBitmap(img); return wxBitmap(img);
} }