Subversion Repositories Kolibri OS

Rev

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

Rev 7793 Rev 7806
Line 103... Line 103...
103
			if (id>=100) EventIconClick(id-100);
103
			if (id>=100) EventIconClick(id-100);
104
			break;
104
			break;
Line 105... Line 105...
105
 
105
 
106
		case evReDraw:
106
		case evReDraw:
107
			SetAppColors();
107
			SetAppColors();
108
			DefineAndDrawWindow(screen.width-window_width/2,screen.height-window_height/2,window_width,window_height,0x74,system.color.work,"",0);
108
			DefineAndDrawWindow(screen.width-window_width/2,screen.height-window_height/2,window_width,window_height,0x74,sc.work,"",0);
109
			GetProcessInfo(#Form, SelfInfo);
109
			GetProcessInfo(#Form, SelfInfo);
110
			if (Form.status_window>2) { 
110
			if (Form.status_window>2) { 
111
				DrawTitle(#window_title);
111
				DrawTitle(#window_title);
112
				break;
112
				break;
Line 125... Line 125...
125
}
125
}
Line 126... Line 126...
126
 
126
 
127
void SetAppColors()
127
void SetAppColors()
128
{
128
{
129
	dword bg_col, old_list_bg_color;
129
	dword bg_col, old_list_bg_color;
130
	system.color.get();
130
	sc.get();
131
	old_list_bg_color = swc.list_bg;
131
	old_list_bg_color = swc.list_bg;
132
	bg_col = system.color.work;
132
	bg_col = sc.work;
133
	if (skin_is_dark()) 
133
	if (skin_is_dark()) 
134
	{
134
	{
135
		//dark colors
135
		//dark colors
136
		swc.list_bg = system.color.work;
136
		swc.list_bg = sc.work;
137
	 	swc.text = system.color.work_text;
137
	 	swc.text = sc.work_text;
138
	 	swc.dark = system.color.work_dark;
138
	 	swc.dark = sc.work_dark;
139
	 	swc.light = system.color.work_light;
139
	 	swc.light = sc.work_light;
140
	} else {
140
	} else {
141
		//light colors
141
		//light colors
142
		swc.list_bg = 0xF3F3F3;
142
		swc.list_bg = 0xF3F3F3;
143
	 	swc.text = 0x000000;
143
	 	swc.text = 0x000000;
Line 240... Line 240...
240
	return true;
240
	return true;
241
}
241
}
Line 242... Line 242...
242
 
242
 
243
void DrawTopBar()
243
void DrawTopBar()
244
{
244
{
245
	DrawBar(0,0,Form.cwidth, list.y-2, system.color.work);
245
	DrawBar(0,0,Form.cwidth, list.y-2, sc.work);
246
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(system.color.work, system.color.work_graph, 180));
246
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(sc.work, sc.work_graph, 180));
247
	DrawBar(0,list.y-1, Form.cwidth, 1, system.color.work_graph);
247
	DrawBar(0,list.y-1, Form.cwidth, 1, sc.work_graph);
248
	kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title);
248
	kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, sc.work, sc.work_text, 16, #window_title);
Line 249... Line 249...
249
}
249
}
250
 
250
 
251
void EventIconClick(dword appid)
251
void EventIconClick(dword appid)