From 5e18eadf22ae5a1468f4796946d8701b6b25f4b3 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 8 Nov 2002 21:07:45 +0000 Subject: [PATCH] - Fixed wrong colors for text and tile with selected menu items --- src/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu.c b/src/menu.c index 8fa671d2..6f655904 100644 --- a/src/menu.c +++ b/src/menu.c @@ -751,7 +751,7 @@ paintEntry(WMenu *menu, int index, int selected) /* paint background */ if (selected) { - XFillRectangle(dpy, win, WMColorGC(scr->white), 1, y+1, w-2, h-3); + XFillRectangle(dpy, win, WMColorGC(scr->select_color), 1, y+1, w-2, h-3); if (scr->menu_item_texture->any.type == WTEX_SOLID) drawFrame(scr, win, y, w, h, type); } else { @@ -820,7 +820,7 @@ paintEntry(WMenu *menu, int index, int selected) XSetClipOrigin(dpy, scr->copy_gc, 5, y+(h-ih)/2); if (selected) { if (entry->flags.enabled) { - XSetForeground(dpy, scr->copy_gc, scr->black_pixel); + XSetForeground(dpy, scr->copy_gc, WMColorPixel(scr->select_text_color)); } else { XSetForeground(dpy, scr->copy_gc, WMColorPixel(scr->dtext_color)); } -- 2.11.4.GIT