87,17 → 87,17 |
int ty = y + padding_v+1; |
int tw = strlen(text)*8; |
int w = tw + padding_h + padding_h; |
unsigned darker_color = MixColors(system.color.work_button,0,230); |
unsigned darker_color = MixColors(sc.button,0,230); |
|
|
if (id>0) DefineButton(x,y,w,h,id,system.color.work_button); |
if (id>0) DefineButton(x,y,w,h,id,sc.button); |
|
WriteText(tx+1,ty+1,0x90,darker_color,text); |
WriteText(tx,ty,0x90,system.color.work_button_text,text); |
WriteText(tx,ty,0x90,sc.button_text,text); |
|
if (active_button_id==id) { |
DrawBar(tx,ty+15,tw,1, darker_color); |
DrawBar(tx,ty+14,tw,1, system.color.work_button_text); |
DrawBar(tx,ty+14,tw,1, sc.button_text); |
} |
|
return w + right_margin; |
146,8 → 146,8 |
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
edit_box_draw stdcall (edit_box_pointer); |
DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
DrawRectangle(x-2, y-2, w+3, h+3, system.color.work_graph); |
DrawRectangle3D(x-3, y-3, w+5, h+5, system.color.work_dark, system.color.work_light); |
DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph); |
DrawRectangle3D(x-3, y-3, w+5, h+5, sc.work_dark, sc.work_light); |
} |
|
#define DOT_W 37 |
163,11 → 163,11 |
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
edit_box_draw stdcall (edit_box_pointer); |
DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
DrawRectangle(x-2, y-2, w+3, h+3, system.color.work_graph); |
DrawRectangle3D(x-3, y-3, w+DOT_W+5, h+5, system.color.work_dark, system.color.work_light); |
DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph); |
DrawRectangle3D(x-3, y-3, w+DOT_W+5, h+5, sc.work_dark, sc.work_light); |
|
WriteText(x-2, y-19, 0x90, system.color.work_text, title); |
DrawCaptButton(x+w+1, y-2, DOT_W, h+3, btn, system.color.work_button, system.color.work_button_text, "..."); |
WriteText(x-2, y-19, 0x90, sc.work_text, title); |
DrawCaptButton(x+w+1, y-2, DOT_W, h+3, btn, sc.button, sc.button_text, "..."); |
} |
|
:void DrawEditBoxPos(dword x,y, edit_box_pointer) |
229,9 → 229,9 |
|
:void Draw3DPopup(dword x,y,w,h) |
{ |
DrawRectangle3D(x,y,w,h, system.color.work_dark, system.color.work_graph); |
DrawBar(x+1,y+1,w-1,1,system.color.work_light); |
DrawBar(x+1,y+2,1,h-2,system.color.work_light); |
DrawRectangle3D(x,y,w,h, sc.work_dark, sc.work_graph); |
DrawBar(x+1,y+1,w-1,1,sc.work_light); |
DrawBar(x+1,y+2,1,h-2,sc.work_light); |
DrawPopupShadow(x,y,w,h-1,0); |
} |
|
302,7 → 302,7 |
:bool skin_is_dark() |
{ |
dword gray; |
dword color_image = #system.color.work; |
dword color_image = #sc.work; |
|
gray = DSBYTE[color_image]*DSBYTE[color_image]; |
gray += DSBYTE[color_image+1]*DSBYTE[color_image+1]; |