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:
@@ -751,7 +751,7 @@ paintEntry(WMenu *menu, int index, int selected)
|
|||||||
|
|
||||||
/* paint background */
|
/* paint background */
|
||||||
if (selected) {
|
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)
|
if (scr->menu_item_texture->any.type == WTEX_SOLID)
|
||||||
drawFrame(scr, win, y, w, h, type);
|
drawFrame(scr, win, y, w, h, type);
|
||||||
} else {
|
} else {
|
||||||
@@ -820,7 +820,7 @@ paintEntry(WMenu *menu, int index, int selected)
|
|||||||
XSetClipOrigin(dpy, scr->copy_gc, 5, y+(h-ih)/2);
|
XSetClipOrigin(dpy, scr->copy_gc, 5, y+(h-ih)/2);
|
||||||
if (selected) {
|
if (selected) {
|
||||||
if (entry->flags.enabled) {
|
if (entry->flags.enabled) {
|
||||||
XSetForeground(dpy, scr->copy_gc, scr->black_pixel);
|
XSetForeground(dpy, scr->copy_gc, WMColorPixel(scr->select_text_color));
|
||||||
} else {
|
} else {
|
||||||
XSetForeground(dpy, scr->copy_gc, WMColorPixel(scr->dtext_color));
|
XSetForeground(dpy, scr->copy_gc, WMColorPixel(scr->dtext_color));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user