From f87cb63be39b2ce5c681277d03ac6c01e07f46ab Mon Sep 17 00:00:00 2001 From: Raymond Penners Date: Mon, 11 Aug 2003 19:55:17 +0000 Subject: [PATCH] Menu colors --- modules/engines/ms-windows/ChangeLog.old | 9 +++++++++ modules/engines/ms-windows/wimp_style.c | 12 ++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/modules/engines/ms-windows/ChangeLog.old b/modules/engines/ms-windows/ChangeLog.old index 1518991116..2d49d0e797 100755 --- a/modules/engines/ms-windows/ChangeLog.old +++ b/modules/engines/ms-windows/ChangeLog.old @@ -1,3 +1,12 @@ +2003-08-11 Raymond Penners + + * src/wimp_style.c: The menu background color now follows XP's + color scheme. + +2003-08-07 Raymond Penners + + * === Released 0.2.0 === + 2003-08-06 Raymond Penners * src/*.c: Added XP theming support for progress bars. diff --git a/modules/engines/ms-windows/wimp_style.c b/modules/engines/ms-windows/wimp_style.c index 996619553b..a36c070a24 100755 --- a/modules/engines/ms-windows/wimp_style.c +++ b/modules/engines/ms-windows/wimp_style.c @@ -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); }