shithub: 9scripts

Download patch

ref: 05e86b0d7ecd19bd1c3190a58fecea98b01d4d7c
parent: 7923e9afe0182b0a723e80f93b0eec30020549ca
author: glenda <glenda@9front.local>
date: Thu Feb 25 17:51:59 EST 2021

added a samterm theme

--- /dev/null
+++ b/patches/samterm.patch
@@ -1,0 +1,27 @@
+diff -r 297026d9dc30 sys/src/cmd/samterm/flayer.c
+--- a/sys/src/cmd/samterm/flayer.c	Thu Feb 18 21:40:30 2021 +0100
++++ b/sys/src/cmd/samterm/flayer.c	Thu Feb 25 14:51:19 2021 -0800
+@@ -29,16 +29,16 @@
+ 	lDrect = r;
+ 
+ 	/* Main text is yellowish */
+-	maincols[BACK] = allocimagemix(display, DPaleyellow, DWhite);
+-	maincols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DDarkyellow);
+-	maincols[BORD] = allocimage(display, Rect(0,0,2,2), screen->chan, 1, DYellowgreen);
+-	maincols[TEXT] = display->black;
++	maincols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x9a9a9aFF);
++	maincols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	maincols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	maincols[TEXT] = display->white;
+ 	maincols[HTEXT] = display->black;
+ 
+ 	/* Command text is blueish */
+-	cmdcols[BACK] = allocimagemix(display, DPalebluegreen, DWhite);
+-	cmdcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPalegreygreen);
+-	cmdcols[BORD] = allocimage(display, Rect(0,0,2,2), screen->chan, 1, DPurpleblue);
++	cmdcols[BACK] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
++	cmdcols[HIGH] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x404040FF);
++	cmdcols[BORD] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xddddddFF);
+ 	cmdcols[TEXT] = display->black;
+ 	cmdcols[HTEXT] = display->black;
+ }