View Raw SPL
static ToolWhite_rgb = 0xffffff;
static ToolGrey_rgb = 0x2e2e2e;
static ToolBlue_rgb = 0xff8573;
static ToolRed_rgb = 0x7966cf;
static ToolGreen_rgb = 0x6dab90;
/* expermimental Dark Mode color configuration */
darkmode2()
{
defdmcolors2();
/* foreground */
setgcolor(1, black);
/* background */
setgcolor(2, eval("GreyDM"));
/* text fg */
setgcolor(3, white);
/* text bg */
setgcolor(4, eval("GreyDM"));
/* series */
setgcolor(5, eval("SeriesBlueDM"));
/* inner window */
setgcolor(7, eval("BlackDM"));
/* window frame */
setgcolor(17, eval("GreyDM"));
/* window text */
setgcolor(18, white);
/* window grid */
setgcolor(19, DimGray);
setgcolor(20, eval("GreyDM"));
setgcolor(26, eval("GreyDM"));
setgcolor(27, dimgray);
/* worksheet */
setgcolor(30, eval("BlackDM"));
/* window caption */
setgcolor(32, eval("CaptionDM"));
/* window caption text */
setgcolor(31, white);
/* tooltips */
setgcolor(33, white);
setgcolor(34, eval("GreyDM"));
/* inactive caption */
setgcolor(35, eval("GreyDM"));
/* inactive caption text */
setgcolor(36, white);
/* active caption */
setgcolor(37, eval("SeriesBlueDM"));
/* active caption text */
setgcolor(38, black);
/* error color */
setgcolor(41, eval("SeriesRedDM"));
/* tic color */
setgcolor(52, white);
/* cursor popup color */
setgcolor(53, white);
setgcolor(54, eval("GreyDM"));
/* toolbar */
setconfig("toolbar_active_fg", 1);
setconfig("toolbar_active_bg", 1);
setconfig("toolbar_reverse_fg", 21);
/* clock */
setconfig("clock_3d", 0);
darkmode2_settbcolors();
redrawall(3);
}
/* define dark mode colors */
defdmcolors2()
{
defcolor("SeriesBlueDM", 117, 182, 231);
defcolor("SeriesRedDM", 216, 149, 120);
defcolor("SeriesRedDM", 255, 149, 120);
defcolor("SeriesRedDM", 207, 102, 121);
defcolor("SeriesGreenDM", 144, 171, 109);
defcolor("SeriesGoldDM", 236, 206, 133);
defcolor("SeriesPurpleDM", 132, 93, 141);
defcolor("SeriesPurpleDM", 189, 134, 252);
defcolor("SeriesCyanDM", 156, 213, 237);
defcolor("SeriesDarkRedDM", 161, 89, 103);
defcolor("SeriesDarkRedDM", 192, 57, 66);
defcolor("BlackDM", 38, 38, 38);
defcolor("GreyDM", 46, 46, 46);
defcolor("CaptionDM", 55, 68, 89);
defcolor("CaptionDM", 65, 78, 99);
defcolor("CaptionDM", 75, 88, 109);
}
/* set toolbar colors */
darkmode2_settbcolors()
{
/* default all buttons to white */
loop (j = 60..244)
{
setgcolor(j, ToolWhite_rgb);
}
setgcolor(72, ToolGrey_rgb);
setgcolor(73, ToolBlue_rgb);
setgcolor(85, ToolRed_rgb);
setgcolor(91, ToolBlue_rgb);
setgcolor(93, ToolBlue_rgb);
setgcolor(94, ToolBlue_rgb);
setgcolor(102, ToolGrey_rgb);
setgcolor(106, ToolGrey_rgb);
setgcolor(107, ToolBlue_rgb);
setgcolor(119, ToolRed_rgb);
setgcolor(125, ToolBlue_rgb);
setgcolor(127, ToolBlue_rgb);
setgcolor(128, ToolBlue_rgb);
setgcolor(155, ToolBlue_rgb);
setgcolor(156, ToolBlue_rgb);
/* data cursor */
setgcolor(159, ToolBlue_rgb);
setgcolor(175, ToolBlue_rgb);
setgcolor(176, ToolBlue_rgb);
/* text cursor */
setgcolor(193, ToolBlue_rgb);
setgcolor(193, ToolBlue_rgb);
/* drawing toolbar */
setgcolor(200, ToolGreen_rgb);
setgcolor(202, ToolBlue_rgb);
setgcolor(204, ToolBlue_rgb);
setgcolor(206, ToolRed_rgb);
setgcolor(208, ToolBlue_rgb);
setgcolor(226, ToolBlue_rgb);
setgcolor(228, ToolGreen_rgb);
setgcolor(230, ToolRed_rgb);
setgcolor(236, ToolGreen_rgb);
setgcolor(239, ToolBlue_rgb);
setgcolor(241, ToolBlue_rgb);
setgcolor(243, ToolBlue_rgb);
}