fix menu bar bgs

This commit is contained in:
cinamod
2003-11-24 15:05:48 +00:00
parent d0c95b51e4
commit af05c04e31
2 changed files with 127 additions and 108 deletions

View File

@ -1,3 +1,10 @@
2003-11-24 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Get the coloration correct for menu bars (XP theme
was showing white foreground instead of gray)
* configure.in: Post-release version number bump
2003-11-19 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.2 ===

View File

@ -424,7 +424,7 @@ setup_default_style (void)
"text_aa[INSENSITIVE] = { %d, %d, %d }\n"
"text_aa[ACTIVE] = { %d, %d, %d }\n"
"text_aa[PRELIGHT] = { %d, %d, %d }\n"
"}\n",
"}widget_class \"*\" style \"wimp-base\"\n",
/* bg */
btnface.red, btnface.green, btnface.blue,
@ -558,6 +558,18 @@ setup_wimp_rc_style(void)
(font_ptr ? font_ptr : " font name should go here"));
gtk_rc_parse_string(buf);
/* Enable coloring for menu bars. */
font_ptr = sys_font_to_pango_font (XP_THEME_CLASS_MENU, XP_THEME_FONT_MENU,font_buf, sizeof (font_buf));
g_snprintf(buf, sizeof (buf),
"style \"wimp-menu-bar\" = \"wimp-menu\"\n"
"{\n"
"bg[NORMAL] = { %d, %d, %d }\n"
"}widget_class \"*GtkMenuBar*\" style \"wimp-menu-bar\"\n",
btn_face.red,
btn_face.green,
btn_face.blue);
gtk_rc_parse_string(buf);
/* enable tooltip fonts */
font_ptr = sys_font_to_pango_font (XP_THEME_CLASS_STATUS, XP_THEME_FONT_STATUS,font_buf, sizeof (font_buf));
g_snprintf(buf, sizeof (buf),