Rev 8881 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8881 | Rev 9602 | ||
---|---|---|---|
Line 203... | Line 203... | ||
203 | static bool colors_set; |
203 | static bool colors_set; |
204 | if (!colors_set) { |
204 | if (!colors_set) { |
205 | colors_set = true; |
205 | colors_set = true; |
206 | inactive_background_color = MixColors(sc.work, 0xFFFfff,230); |
206 | inactive_background_color = MixColors(sc.work, 0xFFFfff,230); |
207 | active_background_color = MixColors(sc.button, sc.work,230); |
207 | active_background_color = MixColors(sc.button, sc.work,230); |
208 | active_top_border_color = MixColors(sc.work_graph, sc.button,240); |
208 | active_top_border_color = MixColors(sc.line, sc.button,240); |
209 | inactive_text_shadow_color = MixColors(sc.work,0xFFFfff,120); |
209 | inactive_text_shadow_color = MixColors(sc.work,0xFFFfff,120); |
210 | skin_dark = skin_is_dark(); |
210 | skin_dark = skin_is_dark(); |
211 | } |
211 | } |
Line 212... | Line 212... | ||
212 | 212 | ||
213 | for (i=0; i |
213 | for (i=0; i |
214 | { |
214 | { |
215 | if (streq(names.get(i), "-")) { |
215 | if (streq(names.get(i), "-")) { |
216 | DrawBar(menu1.x, item_y+0, menu1.w, 1, inactive_background_color); |
216 | DrawBar(menu1.x, item_y+0, menu1.w, 1, inactive_background_color); |
217 | DrawBar(menu1.x-1, item_y+1, menu1.w+1, 1, sc.work_dark); |
217 | DrawBar(menu1.x-1, item_y+1, menu1.w+1, 1, sc.dark); |
218 | DrawBar(menu1.x, item_y+2, menu1.w, 1, sc.work_light); |
218 | DrawBar(menu1.x, item_y+2, menu1.w, 1, sc.light); |
219 | DrawBar(menu1.x, item_y+3, menu1.w, 1, inactive_background_color); |
219 | DrawBar(menu1.x, item_y+3, menu1.w, 1, inactive_background_color); |
220 | //DrawBar(menu1.x, item_y+0, menu1.w, 4, inactive_background_color); |
220 | //DrawBar(menu1.x, item_y+0, menu1.w, 4, inactive_background_color); |
221 | //DrawBar(13, item_y+1, menu1.w-24, 1, sc.work_dark); |
221 | //DrawBar(13, item_y+1, menu1.w-24, 1, sc.dark); |
222 | //DrawBar(13, item_y+2, menu1.w-24, 1, sc.work_light); |
222 | //DrawBar(13, item_y+2, menu1.w-24, 1, sc.light); |
223 | item_y += SEP_H; |
223 | item_y += SEP_H; |
224 | } else { |
224 | } else { |
225 | if (item_i==menu1.cur_y) { |
225 | if (item_i==menu1.cur_y) { |
226 | hotkey_color = name_color = sc.button_text; |
226 | hotkey_color = name_color = sc.button_text; |
227 | DrawBar(menu1.x, item_y+1, menu1.w, ITEM_H-2, active_background_color); |
227 | DrawBar(menu1.x, item_y+1, menu1.w, ITEM_H-2, active_background_color); |
228 | DrawBar(menu1.x, item_y, menu1.w, 1, active_top_border_color); |
228 | DrawBar(menu1.x, item_y, menu1.w, 1, active_top_border_color); |
229 | DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, sc.work_light); |
229 | DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, sc.light); |
230 | } else { |
230 | } else { |
231 | name_color = sc.work_text; |
231 | name_color = sc.work_text; |
232 | hotkey_color = sc.work_graph; |
232 | hotkey_color = sc.line; |
233 | DrawBar(menu1.x, item_y, menu1.w, ITEM_H, inactive_background_color); |
233 | DrawBar(menu1.x, item_y, menu1.w, ITEM_H, inactive_background_color); |
234 | if (!skin_dark) WriteText(13+1, item_y + menu1.text_y +1, 0x80, |
234 | if (!skin_dark) WriteText(13+1, item_y + menu1.text_y +1, 0x80, |
235 | inactive_text_shadow_color, names.get(i)); |
235 | inactive_text_shadow_color, names.get(i)); |
236 | } |
236 | } |