CtrlCore: MacOS dark mode switches suppport

This commit is contained in:
Mirek Fidler 2024-12-28 20:14:55 +01:00
parent f9f8306cb3
commit daa764dab7
6 changed files with 100 additions and 127 deletions

View file

@ -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);
};
}