Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7805 → Rev 7806

/programs/cmm/menu/menu.c
141,7 → 141,7
 
case evReDraw:
DefineAndDrawWindow(win_x, win_y, menu1.w+4, menu1.h+4, 0x01, 0, 0, 0x01fffFFF);
system.color.get();
sc.get();
Draw3DPopup(0,0,menu1.w+2,menu1.h+2);
draw_list();
}
188,10 → 188,10
static bool colors_set;
if (!colors_set) {
colors_set = true;
inactive_background_color = MixColors(system.color.work, 0xFFFfff,230);
active_background_color = MixColors(system.color.work_button, system.color.work,230);
active_top_border_color = MixColors(system.color.work_graph, system.color.work_button,240);
inactive_text_shadow_color = MixColors(system.color.work,0xFFFfff,120);
inactive_background_color = MixColors(sc.work, 0xFFFfff,230);
active_background_color = MixColors(sc.button, sc.work,230);
active_top_border_color = MixColors(sc.work_graph, sc.button,240);
inactive_text_shadow_color = MixColors(sc.work,0xFFFfff,120);
skin_dark = skin_is_dark();
}
 
199,22 → 199,22
{
if (streq(names.get(i), "-")) {
DrawBar(menu1.x, item_y+0, menu1.w, 1, inactive_background_color);
DrawBar(menu1.x-1, item_y+1, menu1.w+1, 1, system.color.work_dark);
DrawBar(menu1.x, item_y+2, menu1.w, 1, system.color.work_light);
DrawBar(menu1.x-1, item_y+1, menu1.w+1, 1, sc.work_dark);
DrawBar(menu1.x, item_y+2, menu1.w, 1, sc.work_light);
DrawBar(menu1.x, item_y+3, menu1.w, 1, inactive_background_color);
//DrawBar(menu1.x, item_y+0, menu1.w, 4, inactive_background_color);
//DrawBar(13, item_y+1, menu1.w-24, 1, system.color.work_dark);
//DrawBar(13, item_y+2, menu1.w-24, 1, system.color.work_light);
//DrawBar(13, item_y+1, menu1.w-24, 1, sc.work_dark);
//DrawBar(13, item_y+2, menu1.w-24, 1, sc.work_light);
item_y += SEP_H;
} else {
if (item_i==menu1.cur_y) {
hotkey_color = name_color = system.color.work_button_text;
hotkey_color = name_color = sc.button_text;
DrawBar(menu1.x, item_y+1, menu1.w, ITEM_H-2, active_background_color);
DrawBar(menu1.x, item_y, menu1.w, 1, active_top_border_color);
DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, system.color.work_light);
DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, sc.work_light);
} else {
name_color = system.color.work_text;
hotkey_color = system.color.work_graph;
name_color = sc.work_text;
hotkey_color = sc.work_graph;
DrawBar(menu1.x, item_y, menu1.w, ITEM_H, inactive_background_color);
if (!skin_dark) WriteText(13+1, item_y + menu1.text_y +1, 0x80,
inactive_text_shadow_color, names.get(i));