From b94a33e01cb7d4e587567c6dc0ac5e0daf793c82 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Tue, 30 Apr 2013 21:03:12 -0400 Subject: rio: fix highlight text for -b --- sys/src/cmd/rio/data.c | 7 ++++--- sys/src/cmd/rio/wind.c | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/sys/src/cmd/rio/data.c b/sys/src/cmd/rio/data.c index 65599b9a4..45c233857 100644 --- a/sys/src/cmd/rio/data.c +++ b/sys/src/cmd/rio/data.c @@ -179,16 +179,17 @@ iconinit(void) /* greys are multiples of 0x11111100+0xFF, 14* being palest */ cols[BACK] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xFFFFFFFF^reverse); - cols[HIGH] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xCCCCCCFF^reverse); cols[BORD] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x999999FF^reverse); cols[TEXT] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x000000FF^reverse); - cols[HTEXT] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x000000FF^reverse); + cols[HTEXT] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x000000FF); if(!reverse) { + cols[HIGH] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xCCCCCCFF); titlecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DGreygreen); lighttitlecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPalegreygreen); } else { + cols[HIGH] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPurpleblue); titlecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPurpleblue); - lighttitlecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x999999FF);; + lighttitlecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x999999FF); } dholdcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DMedblue); lightholdcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DGreyblue); diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c index 49bb30da3..8752090c7 100644 --- a/sys/src/cmd/rio/wind.c +++ b/sys/src/cmd/rio/wind.c @@ -716,14 +716,14 @@ wsetcols(Window *w, int topped) { if(w->holding) if(topped) - w->cols[TEXT] = w->cols[HTEXT] = holdcol; + w->cols[TEXT] = holdcol; else - w->cols[TEXT] = w->cols[HTEXT] = lightholdcol; + w->cols[TEXT] = lightholdcol; else if(topped) - w->cols[TEXT] = w->cols[HTEXT] = cols[TEXT]; + w->cols[TEXT] = cols[TEXT]; else - w->cols[TEXT] = w->cols[HTEXT] = paletextcol; + w->cols[TEXT] = paletextcol; } void -- cgit v1.2.3