Subversion Repositories Kolibri OS

Rev

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

Rev 7491 Rev 7806
Line 21... Line 21...
21
}
21
}
22
 
22
 
Line 23... Line 23...
23
:void sensor::draw_wrapper()
23
:void sensor::draw_wrapper()
24
{
24
{
25
	DrawRectangle(x-1, y-1, w+1, h+1, system.color.work_graph);
25
	DrawRectangle(x-1, y-1, w+1, h+1, sc.work_graph);
26
	DrawRectangle3D(x-2, y-2, w+3, h+3, system.color.work_dark, system.color.work_light);
26
	DrawRectangle3D(x-2, y-2, w+3, h+3, sc.work_dark, sc.work_light);
27
}
27
}
Line 28... Line 28...
28
 
28
 
29
:void sensor::draw_progress(dword progress_w, active_value, bg_value, mesure)
29
:void sensor::draw_progress(dword progress_w, active_value, bg_value, mesure)
30
{
30
{
31
	if (progress_w < MIN_PB_BLOCK_W) progress_w = MIN_PB_BLOCK_W;
31
	if (progress_w < MIN_PB_BLOCK_W) progress_w = MIN_PB_BLOCK_W;
Line 32... Line 32...
32
	if (progress_w > w-MIN_PB_BLOCK_W) progress_w = w-MIN_PB_BLOCK_W;
32
	if (progress_w > w-MIN_PB_BLOCK_W) progress_w = w-MIN_PB_BLOCK_W;
33
 
33
 
34
	DrawBar(x, y,     w-progress_w, 1,   MixColors(PROGRESS_ACTIVE, PROGRESS_BG, 200));
34
	DrawBar(x, y,     w-progress_w, 1,   MixColors(PROGRESS_ACTIVE, PROGRESS_BG, 200));
Line 35... Line 35...
35
	DrawBar(x, y+1,   w-progress_w, h-2, PROGRESS_ACTIVE);
35
	DrawBar(x, y+1,   w-progress_w, h-2, PROGRESS_ACTIVE);
36
	DrawBar(x, y+h-1, w-progress_w, 1,   MixColors(PROGRESS_ACTIVE, system.color.work_graph, 200));
36
	DrawBar(x, y+h-1, w-progress_w, 1,   MixColors(PROGRESS_ACTIVE, sc.work_graph, 200));
Line 37... Line 37...
37
 
37