84,25 → 84,25 |
|
if (_id==tab.active) { |
tab.save_state(); |
bgcol = system.color.work_light; |
border_bottom_color = system.color.work_light; |
bgcol = sc.work_light; |
border_bottom_color = sc.work_light; |
} else { |
bgcol=system.color.work; |
border_bottom_color = system.color.work_graph; |
bgcol=sc.work; |
border_bottom_color = sc.work_graph; |
} |
if (data[_id].header) { |
strncpy(#header_no_version, #data[_id].header, strlen(#data[_id].header)-sizeof(version)-2); |
strncpy(#name, #header_no_version, tab_w-CLOSE_S/6-2); |
} |
DrawBar(xxx, TOOLBAR_H, 1, TAB_H, system.color.work_dark); |
DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_dark); |
DrawBar(xxx+1, TOOLBAR_H, tab_w-1, TAB_H-1, bgcol); |
DrawBar(xxx+1, TOOLBAR_H+TAB_H-1, tab_w-1, 1, border_bottom_color); |
DefineHiddenButton(xxx, TOOLBAR_H-1, tab_w, TAB_H, TAB_ID+_id); |
WriteTextCenter(xxx, TOOLBAR_H+6, tab_w-CLOSE_S, system.color.work_text, #name); |
WriteTextCenter(xxx, TOOLBAR_H+6, tab_w-CLOSE_S, sc.work_text, #name); |
|
DefineHiddenButton(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S-1, CLOSE_S-1, TAB_CLOSE_ID+_id); |
DrawBar(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S, CLOSE_S, system.color.work_dark); |
WriteText(xxx+tab_w-CLOSE_S+1, TOOLBAR_H+5, 0x80, system.color.work_light, "x"); |
DrawBar(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S, CLOSE_S, sc.work_dark); |
WriteText(xxx+tab_w-CLOSE_S+1, TOOLBAR_H+5, 0x80, sc.work_light, "x"); |
} |
|
void DrawActiveTab() |
113,17 → 113,17 |
|
int DrawNewTabButton() |
{ |
dword btn_light = MixColors(system.color.work_button, 0xFFFfff, 220); |
dword btn_dark = MixColors(system.color.work_button, 0, 180); |
dword btn_light = MixColors(sc.button, 0xFFFfff, 220); |
dword btn_dark = MixColors(sc.button, 0, 180); |
int xxx = tab.count * tab_w; |
|
if (tab.count < TABS_MAX) { |
DrawBar(xxx, TOOLBAR_H, 1, TAB_H, system.color.work_graph); |
DrawBar(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, system.color.work_button); |
DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_graph); |
DrawBar(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, sc.button); |
DrawRectangle3D(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, btn_light, btn_dark); |
PutPixel(xxx+1+TAB_H, TOOLBAR_H, btn_dark); |
DefineHiddenButton(xxx+1, TOOLBAR_H, TAB_H-1, TAB_H-1, NEW_TAB); |
WriteText(xxx+7, TOOLBAR_H+2, 0x90, system.color.work_button_text, "+"); |
WriteText(xxx+7, TOOLBAR_H+2, 0x90, sc.button_text, "+"); |
return xxx + TAB_H + 2; |
} else { |
return xxx; |
136,8 → 136,8 |
tab_w = GetTabWidth(); |
for (i=0; i<tab.count; i++) DrawTab(i); |
i = DrawNewTabButton(); |
DrawBar(i, TOOLBAR_H, Form.cwidth-i, TAB_H-1, MixColors(system.color.work_dark, system.color.work, 128)); |
DrawBar(i, TOOLBAR_H+TAB_H-1, Form.cwidth-i, 1, system.color.work_graph); |
DrawBar(i, TOOLBAR_H, Form.cwidth-i, TAB_H-1, MixColors(sc.work_dark, sc.work, 128)); |
DrawBar(i, TOOLBAR_H+TAB_H-1, Form.cwidth-i, 1, sc.work_graph); |
} |
|
void EventTabClose(int _id) |