fix menu bar bgs
This commit is contained in:
@ -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>
|
2003-11-19 Raymond Penners <raymond@dotsphinx.com>
|
||||||
|
|
||||||
* === Released 0.5.2 ===
|
* === Released 0.5.2 ===
|
||||||
|
@ -424,7 +424,7 @@ setup_default_style (void)
|
|||||||
"text_aa[INSENSITIVE] = { %d, %d, %d }\n"
|
"text_aa[INSENSITIVE] = { %d, %d, %d }\n"
|
||||||
"text_aa[ACTIVE] = { %d, %d, %d }\n"
|
"text_aa[ACTIVE] = { %d, %d, %d }\n"
|
||||||
"text_aa[PRELIGHT] = { %d, %d, %d }\n"
|
"text_aa[PRELIGHT] = { %d, %d, %d }\n"
|
||||||
"}\n",
|
"}widget_class \"*\" style \"wimp-base\"\n",
|
||||||
|
|
||||||
/* bg */
|
/* bg */
|
||||||
btnface.red, btnface.green, btnface.blue,
|
btnface.red, btnface.green, btnface.blue,
|
||||||
@ -558,6 +558,18 @@ setup_wimp_rc_style(void)
|
|||||||
(font_ptr ? font_ptr : " font name should go here"));
|
(font_ptr ? font_ptr : " font name should go here"));
|
||||||
gtk_rc_parse_string(buf);
|
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 */
|
/* enable tooltip fonts */
|
||||||
font_ptr = sys_font_to_pango_font (XP_THEME_CLASS_STATUS, XP_THEME_FONT_STATUS,font_buf, sizeof (font_buf));
|
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),
|
g_snprintf(buf, sizeof (buf),
|
||||||
|
Reference in New Issue
Block a user