ref: 2614fa02f727daa957ea7e9cc38df108de27c210
parent: 9a7c5d56539b94a10ce75e63113b2d351e55e143
author: stanley lieber <[email protected]>
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;