Rev 5981 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5981 | Rev 5985 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | void main() |
58 | void main() |
59 | { |
59 | { |
60 | dword id, key; |
60 | dword id, key; |
61 | font.load("/sys/fonts/Tahoma.kf"); |
- | |
62 | font.no_bg_copy = true; |
61 | font.load("/sys/fonts/Tahoma.kf"); |
63 | font.smooth = true; |
62 | font.smooth = true; |
64 | load_dll(libio, #libio_init,1); |
63 | load_dll(libio, #libio_init,1); |
65 | load_dll(libimg, #libimg_init,1); |
64 | load_dll(libimg, #libimg_init,1); |
Line 151... | Line 150... | ||
151 | //WriteTextCenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0x000000,key_name); |
150 | //WriteTextCenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0x000000,key_name); |
152 | font.size = 12; |
151 | font.size = 12; |
153 | font.color = 0xDCDCDC; |
152 | font.color = 0xDCDCDC; |
154 | font.bold = false; |
153 | font.bold = false; |
155 | font.bg_color = LIST_BACKGROUND_COLOR; |
154 | font.bg_color = LIST_BACKGROUND_COLOR; |
156 | font.textcenter(col*cell_w+7,row*cell_h+47 + list_pos,cell_w,0,key_name); |
155 | font.write_center(col*cell_w+7,row*cell_h+47 + list_pos,cell_w,0,key_name); |
157 | font.show(); |
- | |
158 | font.color = 0; |
156 | font.color = 0; |
159 | font.textcenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0,key_name); |
157 | font.write_center(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0,key_name); |
160 | font.show(); |
- | |
161 | current_item_id++; |
158 | current_item_id++; |
162 | col++; |
159 | col++; |
163 | return true; |
160 | return true; |
164 | } |
161 | } |
Line 185... | Line 182... | ||
185 | } |
182 | } |
186 | col = 0; |
183 | col = 0; |
187 | old_row = row; |
184 | old_row = row; |
188 | DrawBar(0, row * cell_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR); |
185 | DrawBar(0, row * cell_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR); |
189 | //WriteTextB(10, row * cell_h + 9 + list_pos, 0x90, 0x000000, sec_name); |
186 | //WriteTextB(10, row * cell_h + 9 + list_pos, 0x90, 0x000000, sec_name); |
190 | font.size=14; |
187 | font.size=15; |
191 | font.bold=true; |
188 | font.bold=false; |
192 | font.bg_color = LIST_BACKGROUND_COLOR; |
189 | font.bg_color = LIST_BACKGROUND_COLOR; |
193 | text_len = font.prepare(10, row * cell_h + 10 + list_pos,sec_name); |
190 | text_len = font.write(10, row * cell_h + 10 + list_pos,sec_name); |
194 | font.show(); |
- | |
195 | DrawBar(text_len+20, row * cell_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC); |
191 | DrawBar(text_len+20, row * cell_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC); |
196 | DrawBar(text_len+20, row * cell_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC); |
192 | DrawBar(text_len+20, row * cell_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC); |
197 | list_pos += 29; |
193 | list_pos += 29; |
198 | ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section); |
194 | ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section); |
199 | } |
195 | } |
Line 206... | Line 202... | ||
206 | DrawBar(0,0,Form.cwidth, top_position-1, system.color.work); |
202 | DrawBar(0,0,Form.cwidth, top_position-1, system.color.work); |
207 | DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph); |
203 | DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph); |
208 | font.size = 17; |
204 | font.size = 17; |
209 | font.bold = false; |
205 | font.bold = false; |
210 | font.bg_color = system.color.work; |
206 | font.bg_color = system.color.work; |
211 | font.prepare(Form.cwidth-font.getsize(#window_title)/2,0,#window_title); |
207 | font.write(Form.cwidth-font.getsize(#window_title)/2,0,#window_title); |
212 | font.show(); |
- | |
213 | list_top = top_position; |
208 | list_top = top_position; |
214 | list_pos = list_top; |
209 | list_pos = list_top; |
215 | row = -1; |
210 | row = -1; |
216 | } |
211 | } |