Commit f87cb63b authored by Raymond Penners's avatar Raymond Penners

Menu colors

parent 3c9624c3
2003-08-11 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: The menu background color now follows XP's
color scheme.
2003-08-07 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.2.0 ===
2003-08-06 Raymond Penners <raymond@dotsphinx.com>
* src/*.c: Added XP theming support for progress bars.
......
......@@ -255,12 +255,14 @@ setup_system_colors(GtkStyle *style)
style->text_aa[i].blue = (style->text[i].blue + style->base[i].blue) / 2;
}
// Enable prelighting for menus.
// Enable coloring for menus.
sprintf(buf, "style \"wimp-menu\"\n"
"{fg[PRELIGHT] = { %d, %d, %d }\n"
"bg[PRELIGHT] = { %d, %d, %d }\n"
"text[PRELIGHT] = { %d, %d, %d }\n"
"base[PRELIGHT] = { %d, %d, %d }\n"
"fg[NORMAL] = { %d, %d, %d }\n"
"bg[NORMAL] = { %d, %d, %d }\n"
"}widget_class \"*GtkMenu*\" style \"wimp-menu\"\n",
fg_prelight.red,
fg_prelight.green,
......@@ -273,7 +275,13 @@ setup_system_colors(GtkStyle *style)
text_prelight.blue,
base_prelight.red,
base_prelight.green,
base_prelight.blue);
base_prelight.blue,
menu_text_color.red,
menu_text_color.green,
menu_text_color.blue,
menu_color.red,
menu_color.green,
menu_color.blue);
gtk_rc_parse_string(buf);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment