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:
parent
f24b3d5483
commit
2135973f7d
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue