Subversion Repositories Kolibri OS

Rev

Rev 7614 | Rev 7906 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7614 Rev 7806
Line 11... Line 11...
11
};
11
};
12
 
12
 
Line 13... Line 13...
13
:void _tabs::draw_wrapper()
13
:void _tabs::draw_wrapper()
14
{
14
{
15
	DrawRectangle(x,y+TAB_HEIGHT,w-1,h-TAB_HEIGHT, system.color.work_graph);
15
	DrawRectangle(x,y+TAB_HEIGHT,w-1,h-TAB_HEIGHT, sc.work_graph);
16
	DrawRectangle(x+1,y+1+TAB_HEIGHT,w-3,h-2-TAB_HEIGHT, system.color.work_light);
16
	DrawRectangle(x+1,y+1+TAB_HEIGHT,w-3,h-2-TAB_HEIGHT, sc.work_light);
17
}
17
}
Line 18... Line 18...
18
 
18
 
19
:void _tabs::draw_button(dword xx, but_id, text)
19
:void _tabs::draw_button(dword xx, but_id, text)
20
{
20
{
21
	dword col_bg, col_text;
21
	dword col_bg, col_text;
Line 22... Line 22...
22
	dword ww=strlen(text)*8, hh=TAB_HEIGHT;
22
	dword ww=strlen(text)*8, hh=TAB_HEIGHT;
23
 
23
 
24
	if (but_id==active_tab)
24
	if (but_id==active_tab)
25
	{
25
	{
26
		col_bg=0xE44C9C;
26
		col_bg=0xE44C9C;
27
		col_text=system.color.work_text;
27
		col_text=sc.work_text;
28
	}
28
	}
29
	else
29
	else
30
	{
30
	{
31
		col_bg=0xC3A1B7;
31
		col_bg=0xC3A1B7;
32
		col_text= MixColors(system.color.work, system.color.work_text, 120);
32
		col_text= MixColors(sc.work, sc.work_text, 120);
33
	} 
33
	} 
34
	DefineHiddenButton(xx-2,y, ww-1+4,hh-1, but_id);
34
	DefineHiddenButton(xx-2,y, ww-1+4,hh-1, but_id);
35
	WriteText(xx, y+6, 0x90, col_text, text);
35
	WriteText(xx, y+6, 0x90, col_text, text);