ref: 49d6ef1ec4138dbfe6c1612960d7ee586aef6342
parent: 7b7a48800c1067e091e9e89f79a8d8d1c6958bd0
author: stanley lieber <stanley.lieber@gmail.com>
date: Tue Apr 30 17:03:12 EDT 2013
rio: fix highlight text for -b
--- a/sys/src/cmd/rio/data.c
+++ b/sys/src/cmd/rio/data.c
@@ -179,16 +179,17 @@
/* 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);
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -716,14 +716,14 @@
{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
--
⑨