shithub: 9scripts

Download patch

ref: 2c2e67fb861bb77e16bc4910bdc3cfe421525373
parent: 4d685560a37ada9686b7c23a8af12919bca3f93c
author: glenda <glenda@9front.local>
date: Thu Feb 25 13:46:47 EST 2021

winwatch

--- /dev/null
+++ b/patches/winwatch.patch
@@ -1,0 +1,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)