14,21 → 14,21 |
#define TSZE 25 |
static dword lightest, i16_mem, old_work_light; |
dword i16_size; |
if (!lightest) || (old_work_light != sc.work_light) { |
old_work_light = sc.work_light; |
lightest = MixColors(sc.work_light, 0xFFFfff, skin_is_dark()*155 + 20); |
if (!lightest) || (old_work_light != sc.light) { |
old_work_light = sc.light; |
lightest = MixColors(sc.light, 0xFFFfff, skin_is_dark()*155 + 20); |
if (ESI = memopen("ICONS18", NULL, SHM_READ)) { |
i16_size = EDX; |
i16_mem = malloc(i16_size); |
memmov(i16_mem, ESI, i16_size); |
replace_2cols(i16_mem, i16_size, 0xffFFFfff, sc.work_light, 0xffCACBD6, sc.work_dark); |
replace_2cols(i16_mem, i16_size, 0xffFFFfff, sc.light, 0xffCACBD6, sc.dark); |
} |
} |
DrawWideRectangle(_x+1, _y+1, TSZE, TSZE, 5, sc.work_light); |
DrawWideRectangle(_x+1, _y+1, TSZE, TSZE, 5, sc.light); |
DefineHiddenButton(_x, _y, TSZE+1, TSZE+1, _button_id); |
if (_icon_n==-1) { |
DrawBar(_x+6, _y+5, 16, 16, sc.work_light); |
DrawBar(_x+6, _y+7, 15, 3, sc.work_graph); |
DrawBar(_x+6, _y+5, 16, 16, sc.light); |
DrawBar(_x+6, _y+7, 15, 3, sc.line); |
$add ecx,5*65536 |
$int 64 |
$add ecx,5*65536 |
39,9 → 39,9 |
} |
|
if (!pressed) { |
DrawOvalBorder(_x, _y, TSZE, TSZE, lightest, sc.work_graph, sc.work_light, sc.work); |
DrawOvalBorder(_x, _y, TSZE, TSZE, lightest, sc.line, sc.light, sc.work); |
} else { |
DrawOvalBorder(_x, _y, TSZE, TSZE, sc.work_graph, sc.work_light, sc.work_dark, sc.work); |
DrawOvalBorder(_x, _y, TSZE, TSZE, sc.line, sc.light, sc.dark, sc.work); |
PutShadow(_x+1, _y+1, TSZE, TSZE, true, 2); |
} |
|