1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 13:28:05 +01:00

- Fixed wrong colors for text and tile with selected menu items

This commit is contained in:
dan
2002-11-08 21:07:45 +00:00
parent 19f7fbc949
commit 5e18eadf22

View File

@@ -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));
}