mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: MacOS dark mode switches suppport
This commit is contained in:
parent
f9f8306cb3
commit
daa764dab7
6 changed files with 100 additions and 127 deletions
|
|
@ -186,18 +186,6 @@ static void PaintArrow(Draw& draw, const Rect& rc, int pos)
|
|||
PaintArrowRaw(draw, rc, rc.bottom - pos * rc.Height() / 255);
|
||||
}
|
||||
|
||||
static const int std_palette[] =
|
||||
{
|
||||
0x000000, 0x808080,
|
||||
0xC0C0C0, 0xFFFFFF,
|
||||
0x000080, 0x0000FF,
|
||||
0x008000, 0x00FF00,
|
||||
0x008080, 0x00FFFF,
|
||||
0x800000, 0xFF0000,
|
||||
0x800080, 0xFF00FF,
|
||||
0x808000, 0xFFFF00,
|
||||
};
|
||||
|
||||
WheelRampCtrl::WheelRampCtrl(bool r)
|
||||
: ramp(r)
|
||||
{
|
||||
|
|
@ -807,24 +795,4 @@ private:
|
|||
String recent_file;
|
||||
};
|
||||
|
||||
static void InitColor(Color *out)
|
||||
{
|
||||
out[ 0] = Color(0x00, 0x00, 0x00);
|
||||
out[ 1] = Color(0x80, 0x80, 0x80);
|
||||
out[ 2] = Color(0xC0, 0xC0, 0xC0);
|
||||
out[ 3] = Color(0xFF, 0xFF, 0xFF);
|
||||
out[ 4] = Color(0x80, 0x00, 0x00);
|
||||
out[ 5] = Color(0xFF, 0x00, 0x00);
|
||||
out[ 6] = Color(0x00, 0x80, 0x00);
|
||||
out[ 7] = Color(0x00, 0xFF, 0x00);
|
||||
out[ 8] = Color(0x80, 0x80, 0x00);
|
||||
out[ 9] = Color(0xFF, 0xFF, 0x00);
|
||||
out[10] = Color(0x00, 0x00, 0x80);
|
||||
out[11] = Color(0x00, 0x00, 0xFF);
|
||||
out[12] = Color(0x80, 0x00, 0x80);
|
||||
out[13] = Color(0xFF, 0x00, 0xFF);
|
||||
out[14] = Color(0x00, 0x80, 0x80);
|
||||
out[15] = Color(0x00, 0xFF, 0xFF);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue