Rev 5656 | Rev 5705 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5656 | Rev 5674 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | char temp_filename[4096]; |
39 | char temp_filename[4096]; |
40 | int files_mas[100]; |
40 | int files_mas[100]; |
Line 41... | Line 41... | ||
41 | 41 | ||
Line 42... | Line -... | ||
42 | int cur; |
- | |
43 | 42 | int cur; |
|
Line 44... | Line 43... | ||
44 | system_colors sc; |
43 | |
Line 45... | Line 44... | ||
45 | proc_info Form; |
44 | proc_info Form; |
Line 81... | Line 80... | ||
81 | temp_filename[strlen(#temp_filename)-4] = 0; |
80 | temp_filename[strlen(#temp_filename)-4] = 0; |
82 | yyy = i*list[active].line_h+list[active].y; |
81 | yyy = i*list[active].line_h+list[active].y; |
Line 83... | Line 82... | ||
83 | 82 | ||
84 | if (list[active].current-list[active].first==i) |
83 | if (list[active].current-list[active].first==i) |
85 | { |
84 | { |
86 | if (sc.work_button!=sc.work) |
85 | if (system.color.work_button!=system.color.work) |
87 | { |
86 | { |
88 | DrawBar(0, yyy, list[active].w, list[active].line_h, sc.work_button); |
87 | DrawBar(0, yyy, list[active].w, list[active].line_h, system.color.work_button); |
89 | if (i |
88 | if (i |
90 | } |
89 | } |
91 | else |
90 | else |
92 | { |
91 | { |
93 | DrawBar(0, yyy, list[active].w, list[active].line_h, sc.grab_button); |
92 | DrawBar(0, yyy, list[active].w, list[active].line_h, system.color.grab_button); |
94 | if (i |
93 | if (i |
95 | } |
94 | } |
96 | } |
95 | } |
97 | else |
96 | else |
98 | { |
97 | { |
Line 206... | Line 205... | ||
206 | Apply(); |
205 | Apply(); |
207 | } |
206 | } |
208 | break; |
207 | break; |
Line 209... | Line 208... | ||
209 | 208 | ||
210 | case evReDraw: |
209 | case evReDraw: |
211 | sc.get(); |
210 | system.color.get(); |
212 | DefineAndDrawWindow(30,80,list[active].w+9,list[active].h+4+GetSkinHeight(),0x73,0xE4DFE1,WINDOW_HEADER,0); |
211 | DefineAndDrawWindow(30,80,list[active].w+9,list[active].h+4+GetSkinHeight(),0x73,0xE4DFE1,WINDOW_HEADER,0); |
213 | GetProcessInfo(#Form, SelfInfo); |
212 | GetProcessInfo(#Form, SelfInfo); |
214 | IF (Form.status_window>=2) break; |
213 | IF (Form.status_window>=2) break; |
215 | DrawTabs(); |
214 | DrawTabs(); |
Line 225... | Line 224... | ||
225 | dword col_bg, col_text; |
224 | dword col_bg, col_text; |
226 | dword w=strlen(text)*6+BT_PADDING, h=21; |
225 | dword w=strlen(text)*6+BT_PADDING, h=21; |
Line 227... | Line 226... | ||
227 | 226 | ||
228 | if (is_active) |
227 | if (is_active) |
229 | { |
228 | { |
230 | col_bg=sc.work_button; |
229 | col_bg=system.color.work_button; |
231 | col_text=sc.work_button_text; |
230 | col_text=system.color.work_button_text; |
232 | } |
231 | } |
233 | else |
232 | else |
234 | { |
233 | { |
235 | col_bg=sc.work; |
234 | col_bg=system.color.work; |
236 | col_text=sc.work_text; |
235 | col_text=system.color.work_text; |
237 | } |
236 | } |
238 | DrawRectangle(x,y, w,h, sc.work_graph); |
237 | DrawRectangle(x,y, w,h, system.color.work_graph); |
239 | DrawCaptButton(x+1,y+1, w-2,h-1, but_id, col_bg, col_text, text); |
238 | DrawCaptButton(x+1,y+1, w-2,h-1, but_id, col_bg, col_text, text); |
240 | _PutImage(x+6,y+4, 16,15, but_id-2*16*15*3+#icons); |
239 | _PutImage(x+6,y+4, 16,15, but_id-2*16*15*3+#icons); |
Line 241... | Line 240... | ||
241 | } |
240 | } |
242 | 241 | ||
243 | 242 | ||
244 | void DrawTabs() |
243 | void DrawTabs() |
245 | { |
244 | { |
246 | DrawBar(0,0, Form.cwidth, PANEL_H-1, sc.work); |
245 | DrawBar(0,0, Form.cwidth, PANEL_H-1, system.color.work); |
247 | DrawTab(10,7, 2, list[WALLPAPERS].active, T_WALLPAPERS); |
246 | DrawTab(10,7, 2, list[WALLPAPERS].active, T_WALLPAPERS); |
248 | DrawTab(strlen(T_WALLPAPERS)*6+BT_PADDING+21,7, 3, list[SKINS].active, T_SKINS); |
247 | DrawTab(strlen(T_WALLPAPERS)*6+BT_PADDING+21,7, 3, list[SKINS].active, T_SKINS); |
Line 249... | Line 248... | ||
249 | DrawBar(0,PANEL_H-2, Form.cwidth, 1, sc.work_graph); |
248 | DrawBar(0,PANEL_H-2, Form.cwidth, 1, system.color.work_graph); |
250 | DrawBar(0,PANEL_H-1, Form.cwidth, 1, 0xEEEeee); |
249 | DrawBar(0,PANEL_H-1, Form.cwidth, 1, 0xEEEeee); |
Line 270... | Line 269... | ||
270 | 269 | ||
271 | 270 | ||
272 | void DrawScroller() |
271 | void DrawScroller() |
273 | { |
272 | { |
274 | scroll1.bckg_col = 0xBBBbbb; |
273 | scroll1.bckg_col = 0xBBBbbb; |
Line 275... | Line 274... | ||
275 | scroll1.frnt_col = sc.work; |
274 | scroll1.frnt_col = system.color.work; |
276 | scroll1.line_col = sc.work_graph; |
275 | scroll1.line_col = system.color.work_graph; |
277 | 276 |