ref: b6ca9202cb68cbb4c7c85270a3a13b42c4320414
parent: edc413077a7c7403603e19223843d356ca5891ae
author: stanley lieber <stanley.lieber@gmail.com>
date: Sat Apr 25 17:55:43 EDT 2020
mothra: make user interface monochrome
--- a/sys/src/cmd/mothra/libpanel/draw.c
+++ b/sys/src/cmd/mothra/libpanel/draw.c
@@ -17,9 +17,10 @@
static Image *pl_white, *pl_light, *pl_dark, *pl_black, *pl_hilit;
int pl_drawinit(int ldepth){plldepth=ldepth;
+ /* mono */
pl_white=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF);
- pl_light=allocimagemix(display, DPalebluegreen, DWhite);
- pl_dark=allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPurpleblue);
+ pl_light=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF);
+ pl_dark=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x555555FF);
pl_black=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x000000FF);
pl_hilit=allocimage(display, Rect(0,0,1,1), CHAN1(CAlpha,8), 1, 0x80);
if(pl_white==0 || pl_light==0 || pl_black==0 || pl_dark==0) return 0;
--
⑨