Rev 7780 | Rev 7863 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7780 | Rev 7806 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | #define h padding_v + padding_v + 16 //16 font height |
85 | #define h padding_v + padding_v + 16 //16 font height |
86 | int tx = x + padding_h; |
86 | int tx = x + padding_h; |
87 | int ty = y + padding_v+1; |
87 | int ty = y + padding_v+1; |
88 | int tw = strlen(text)*8; |
88 | int tw = strlen(text)*8; |
89 | int w = tw + padding_h + padding_h; |
89 | int w = tw + padding_h + padding_h; |
90 | unsigned darker_color = MixColors(system.color.work_button,0,230); |
90 | unsigned darker_color = MixColors(sc.button,0,230); |
Line 91... | Line 91... | ||
91 | 91 | ||
Line 92... | Line 92... | ||
92 | 92 | ||
93 | if (id>0) DefineButton(x,y,w,h,id,system.color.work_button); |
93 | if (id>0) DefineButton(x,y,w,h,id,sc.button); |
Line 94... | Line 94... | ||
94 | 94 | ||
95 | WriteText(tx+1,ty+1,0x90,darker_color,text); |
95 | WriteText(tx+1,ty+1,0x90,darker_color,text); |
96 | WriteText(tx,ty,0x90,system.color.work_button_text,text); |
96 | WriteText(tx,ty,0x90,sc.button_text,text); |
97 | 97 | ||
Line 98... | Line 98... | ||
98 | if (active_button_id==id) { |
98 | if (active_button_id==id) { |
99 | DrawBar(tx,ty+15,tw,1, darker_color); |
99 | DrawBar(tx,ty+15,tw,1, darker_color); |
Line 144... | Line 144... | ||
144 | w = ESI.edit_box.width+1; |
144 | w = ESI.edit_box.width+1; |
145 | h = 22; |
145 | h = 22; |
146 | if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
146 | if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
147 | edit_box_draw stdcall (edit_box_pointer); |
147 | edit_box_draw stdcall (edit_box_pointer); |
148 | DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
148 | DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
149 | DrawRectangle(x-2, y-2, w+3, h+3, system.color.work_graph); |
149 | DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph); |
150 | DrawRectangle3D(x-3, y-3, w+5, h+5, system.color.work_dark, system.color.work_light); |
150 | DrawRectangle3D(x-3, y-3, w+5, h+5, sc.work_dark, sc.work_light); |
151 | } |
151 | } |
Line 152... | Line 152... | ||
152 | 152 | ||
153 | #define DOT_W 37 |
153 | #define DOT_W 37 |
154 | :void DrawFileBox(dword edit_box_pointer, title, btn) |
154 | :void DrawFileBox(dword edit_box_pointer, title, btn) |
Line 161... | Line 161... | ||
161 | h = 22; |
161 | h = 22; |
Line 162... | Line 162... | ||
162 | 162 | ||
163 | if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
163 | if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
164 | edit_box_draw stdcall (edit_box_pointer); |
164 | edit_box_draw stdcall (edit_box_pointer); |
165 | DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
165 | DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg); |
166 | DrawRectangle(x-2, y-2, w+3, h+3, system.color.work_graph); |
166 | DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph); |
Line 167... | Line 167... | ||
167 | DrawRectangle3D(x-3, y-3, w+DOT_W+5, h+5, system.color.work_dark, system.color.work_light); |
167 | DrawRectangle3D(x-3, y-3, w+DOT_W+5, h+5, sc.work_dark, sc.work_light); |
168 | 168 | ||
169 | WriteText(x-2, y-19, 0x90, system.color.work_text, title); |
169 | WriteText(x-2, y-19, 0x90, sc.work_text, title); |
Line 170... | Line 170... | ||
170 | DrawCaptButton(x+w+1, y-2, DOT_W, h+3, btn, system.color.work_button, system.color.work_button_text, "..."); |
170 | DrawCaptButton(x+w+1, y-2, DOT_W, h+3, btn, sc.button, sc.button_text, "..."); |
171 | } |
171 | } |
172 | 172 | ||
Line 227... | Line 227... | ||
227 | DrawPopupShadow(x,y,w,h-1,skinned); |
227 | DrawPopupShadow(x,y,w,h-1,skinned); |
228 | } |
228 | } |
Line 229... | Line 229... | ||
229 | 229 | ||
230 | :void Draw3DPopup(dword x,y,w,h) |
230 | :void Draw3DPopup(dword x,y,w,h) |
231 | { |
231 | { |
232 | DrawRectangle3D(x,y,w,h, system.color.work_dark, system.color.work_graph); |
232 | DrawRectangle3D(x,y,w,h, sc.work_dark, sc.work_graph); |
233 | DrawBar(x+1,y+1,w-1,1,system.color.work_light); |
233 | DrawBar(x+1,y+1,w-1,1,sc.work_light); |
234 | DrawBar(x+1,y+2,1,h-2,system.color.work_light); |
234 | DrawBar(x+1,y+2,1,h-2,sc.work_light); |
235 | DrawPopupShadow(x,y,w,h-1,0); |
235 | DrawPopupShadow(x,y,w,h-1,0); |
Line 236... | Line 236... | ||
236 | } |
236 | } |
237 | 237 | ||
Line 300... | Line 300... | ||
300 | } |
300 | } |
Line 301... | Line 301... | ||
301 | 301 | ||
302 | :bool skin_is_dark() |
302 | :bool skin_is_dark() |
303 | { |
303 | { |
304 | dword gray; |
304 | dword gray; |
Line 305... | Line 305... | ||
305 | dword color_image = #system.color.work; |
305 | dword color_image = #sc.work; |
306 | 306 | ||
307 | gray = DSBYTE[color_image]*DSBYTE[color_image]; |
307 | gray = DSBYTE[color_image]*DSBYTE[color_image]; |
308 | gray += DSBYTE[color_image+1]*DSBYTE[color_image+1]; |
308 | gray += DSBYTE[color_image+1]*DSBYTE[color_image+1]; |