shithub: 9scripts

Download patch

ref: d37cf8e29d5cb8e59a30e218595be0ea55b0a78f
parent: efb266d408ff4ccfadb6efce3fbb618a1906f381
author: glenda <glenda@9front.local>
date: Thu Feb 25 15:26:02 EST 2021

acme

--- /dev/null
+++ b/patches/acme.patch
@@ -1,0 +1,43 @@
+diff -r 297026d9dc30 sys/src/cmd/acme/acme.c
+--- a/sys/src/cmd/acme/acme.c	Thu Feb 18 21:40:30 2021 +0100
++++ b/sys/src/cmd/acme/acme.c	Thu Feb 25 12:25:27 2021 -0800
+@@ -876,17 +876,17 @@
+ 	Image *tmp;
+ 
+ 	/* Blue */
+-	tagcols[BACK] = allocimagemix(display, DPalebluegreen, DWhite);
+-	tagcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPalegreygreen);
+-	tagcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPurpleblue);
++	tagcols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	tagcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x404040FF);
++	tagcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x404040FF);
+ 	tagcols[TEXT] = display->black;
+ 	tagcols[HTEXT] = display->black;
+ 
+ 	/* Yellow */
+-	textcols[BACK] = allocimagemix(display, DPaleyellow, DWhite);
+-	textcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DDarkyellow);
+-	textcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DYellowgreen);
+-	textcols[TEXT] = display->black;
++	textcols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x9a9a9aFF);
++	textcols[HIGH] =  allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	textcols[BORD] =  allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	textcols[TEXT] = display->white;
+ 	textcols[HTEXT] = display->black;
+ 
+ 	if(button){
+@@ -907,12 +907,12 @@
+ 	r.max.x -= 2;
+ 	border(modbutton, r, 2, tagcols[BORD], ZP);
+ 	r = insetrect(r, 2);
+-	tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);
++	tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x404040FF);
+ 	draw(modbutton, r, tmp, nil, ZP);
+ 	freeimage(tmp);
+ 
+ 	r = button->r;
+-	colbutton = allocimage(display, r, screen->chan, 0, DPurpleblue);
++	colbutton = allocimage(display, r, screen->chan, 0, 0x404040FF);
+ 
+ 	but2col = allocimage(display, r, screen->chan, 1, 0xAA0000FF);
+ 	but3col = allocimage(display, r, screen->chan, 1, 0x006600FF);