Subversion Repositories Kolibri OS

Rev

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

Rev 5987 Rev 5997
Line 143... Line 143...
143
	tmp = cell_w/2;
143
	tmp = cell_w/2;
Line 144... Line 144...
144
 
144
 
145
	icon_char_pos = strchr(key_value, ',');
145
	icon_char_pos = strchr(key_value, ',');
146
	if (icon_char_pos) icon_id = atoi(icon_char_pos+1); else icon_id = default_icon;
146
	if (icon_char_pos) icon_id = atoi(icon_char_pos+1); else icon_id = default_icon;
147
	img_draw stdcall(skin.image, col*cell_w+tmp-10, row*cell_h+5 + list_pos, 32, 32, 0, icon_id*32);
-
 
148
	label.bold = false;
147
	img_draw stdcall(skin.image, col*cell_w+tmp-10, row*cell_h+5 + list_pos, 32, 32, 0, icon_id*32);
149
	label.write_center(col*cell_w+7,row*cell_h+47 + list_pos, cell_w,0, LIST_BACKGROUND_COLOR, 0xDCDCDC, 12, key_name);
148
	label.write_center(col*cell_w+7,row*cell_h+47 + list_pos, cell_w,0, LIST_BACKGROUND_COLOR, 0xDCDCDC, 12, key_name);
150
	label.write_center(col*cell_w+6,row*cell_h+46 + list_pos, cell_w,0, LIST_BACKGROUND_COLOR, 0x000000, 12, key_name);
149
	label.write_center(col*cell_w+6,row*cell_h+46 + list_pos, cell_w,0, LIST_BACKGROUND_COLOR, 0x000000, 12, key_name);
151
	current_item_id++;
150
	current_item_id++;
152
	col++;
151
	col++;
Line 175... Line 174...
175
		}
174
		}
176
		col = 0;
175
		col = 0;
177
		old_row = row;
176
		old_row = row;
178
		DrawBar(0, row * cell_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR);
177
		DrawBar(0, row * cell_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR);
179
		//WriteTextB(10, row * cell_h + 9 + list_pos, 0x90, 0x000000, sec_name);
178
		//WriteTextB(10, row * cell_h + 9 + list_pos, 0x90, 0x000000, sec_name);
180
		label.bold=false;
-
 
181
		text_len = label.write(10, row * cell_h + 10 + list_pos, LIST_BACKGROUND_COLOR, 0, 15, sec_name);
179
		text_len = label.write(10, row * cell_h + 10 + list_pos, LIST_BACKGROUND_COLOR, 0, 15, sec_name);
182
		DrawBar(text_len+20, row * cell_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC);
180
		DrawBar(text_len+20, row * cell_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC);
183
		DrawBar(text_len+20, row * cell_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC);
181
		DrawBar(text_len+20, row * cell_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC);
184
		list_pos += 29;
182
		list_pos += 29;
185
		ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section);
183
		ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section);
Line 188... Line 186...
188
}
186
}
Line 189... Line 187...
189
 
187
 
190
void draw_top_bar()
188
void draw_top_bar()
191
{
189
{
192
	int top_position = 26;
190
	int top_position = 26;
-
 
191
	DrawBar(0,0,Form.cwidth, top_position-2, system.color.work);
193
	DrawBar(0,0,Form.cwidth, top_position-1, system.color.work);
192
	DrawBar(0,top_position-2, Form.cwidth, 1, ShadowPixel(system.color.work, 1));
194
	DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph);
-
 
195
	label.bold = false;
193
	DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph);
196
	label.write_center(0,0, Form.cwidth, top_position, system.color.work, system.color.work_text, 17, #window_title);
194
	label.write_center(0,0, Form.cwidth, top_position, system.color.work, system.color.work_text, 16, #window_title);
197
	list_top = top_position;
195
	list_top = top_position;
198
	list_pos = list_top;
196
	list_pos = list_top;
199
	row = -1;
197
	row = -1;