Subversion Repositories Kolibri OS

Rev

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

Rev 7783 Rev 7806
Line 47... Line 47...
47
	dword value_text = itoa(value);
47
	dword value_text = itoa(value);
Line 48... Line 48...
48
 
48
 
49
	check_values();
49
	check_values();
Line 50... Line 50...
50
	x=_x; y=_y;
50
	x=_x; y=_y;
51
 
51
 
Line 52... Line 52...
52
	DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, system.color.work_graph);
52
	DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, sc.work_graph);
53
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
53
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
54
 
54
 
55
	if (disabled)
55
	if (disabled)
56
	{
56
	{
57
		DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff);
57
		DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff);
58
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc);
58
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc);
59
		text_col = system.color.work_graph;
59
		text_col = sc.work_graph;
60
	}
60
	}
61
	else 
61
	else 
62
	{
62
	{
Line 63... Line 63...
63
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff);
63
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff);
Line 64... Line 64...
64
		text_col = system.color.work_text;
64
		text_col = sc.work_text;
65
	}
65
	}
66
 
66
 
67
	WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text);
67
	WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text);
68
 
68
 
Line 69... Line 69...
69
	DrawCaptButton(VALUE_FIELD_W + x + 1,    y, SIZE, SIZE, id_inc, system.color.work_button, system.color.work_button_text, "+");
69
	DrawCaptButton(VALUE_FIELD_W + x + 1,    y, SIZE, SIZE, id_inc, sc.button, sc.button_text, "+");
70
	DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, id_dec, system.color.work_button, system.color.work_button_text, "-");
70
	DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, id_dec, sc.button, sc.button_text, "-");
71
	WriteTextWithBg(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, text_col, text, system.color.work);
71
	WriteTextWithBg(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, text_col, text, sc.work);