~fultonbrowne/rc-scripts

ref: 1548cc3d3364e742e401026593c24123c7b17457 rc-scripts/patches/winwatch.patch -rw-r--r-- 957 bytes
1548cc3d — glenda added yet another handy script 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -r 297026d9dc30 sys/src/cmd/winwatch.c
--- a/sys/src/cmd/winwatch.c	Thu Feb 18 21:40:30 2021 +0100
+++ b/sys/src/cmd/winwatch.c	Thu Feb 25 10:45:25 2021 -0800
@@ -339,12 +339,12 @@
 
 	if(initdraw(0, fontname, "winwatch") < 0)
 		sysfatal("initdraw: %r");
-	lightblue = allocimagemix(display, DPalebluegreen, DWhite);
+	lightblue = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x9a9a9aFF);
 
-	statecol[0] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xCCCCCCFF);
-	statecol[1] = lightblue;
-	statecol[2] = lightblue;
-	statecol[3] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPalegreygreen);
+	statecol[0] = lightblue;
+	statecol[1] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x777777FF);
+	statecol[2] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xaaaaaaFF);
+	statecol[3] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xccccccFF);
 
 	for(i=0; i<nelem(statecol); i++)
 		if(statecol[i] == nil)