Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7613 → Rev 7614

/programs/cmm/lib/gui/tabs.h
4,9 → 4,8
 
:struct _tabs
{
int active_tab;
int x,y,w,h;
int active_tab;
int c;
void draw_button();
int click();
void draw_wrapper();
14,20 → 13,8
 
:void _tabs::draw_wrapper()
{
dword color_light = MixColors(system.color.work, 0xFFFfff, 40);
dword color_content = MixColors(system.color.work, 0xFFFfff, 120);
dword color_light_border = MixColors(system.color.work, system.color.work_graph, 120);
 
DrawRectangle(x-1, y-1, w+1, h+1, system.color.work_graph);
DrawBar(x, y, w, h, color_content); //0xF3F3F3
DrawRectangle3D(x, y, w-1, h-1, color_light, color_content); //0xF3F3F3
 
DrawBar(x+1, y+h+1, w-2, 2, system.color.work_dark); //"shadow"
 
DrawBar(x, y+TAB_HEIGHT-1, w, 1, color_light_border);
DrawBar(x, y+TAB_HEIGHT, w, 1, color_light);
 
c = y + TAB_HEIGHT;
DrawRectangle(x,y+TAB_HEIGHT,w-1,h-TAB_HEIGHT, system.color.work_graph);
DrawRectangle(x+1,y+1+TAB_HEIGHT,w-3,h-2-TAB_HEIGHT, system.color.work_light);
}
 
:void _tabs::draw_button(dword xx, but_id, text)
38,16 → 25,17
if (but_id==active_tab)
{
col_bg=0xE44C9C;
col_text=0x000000;
col_text=system.color.work_text;
}
else
{
col_bg=0xC3A1B7;
col_text=0x333333;
col_text= MixColors(system.color.work, system.color.work_text, 120);
}
DefineHiddenButton(xx,y, ww-1,hh-1, but_id);
DefineHiddenButton(xx-2,y, ww-1+4,hh-1, but_id);
WriteText(xx, y+6, 0x90, col_text, text);
DrawBar(xx, y+hh-3, ww, 3, col_bg);
//DrawStandartCaptButton(xx, y, but_id, text); //GetFreeButtonId()
}
 
:int _tabs::click(int N)