shithub: patch

ref: 0051b9983765355de28a791b092199eba0fc36dd
dir: /vdir-col/

View raw version
diff 848a598df06df0557bfe37dd6711d8ed966a56b6 uncommitted
--- a/alert.c
+++ b/alert.c
@@ -38,8 +38,8 @@
 	alts[2].v  = nil;
 	while(nbrecv(kctl->c, nil)==1)
 		;
-	bg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xf8d7daff);
-	fg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x721c24ff);
+	bg = display->black;
+	fg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x790000ff);
 	tf = openfont(display, Titlefont);
 	if(tf==nil)
 		sysfatal("openfont: %r");
--- a/vdir.c
+++ b/vdir.c
@@ -224,11 +224,11 @@
 void
 initcolors(void)
 {
-	toolbg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xEFEFEFFF);
+	toolbg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x790000ff);
 	toolfg = display->black;
-	viewbg = display->white;
-	viewfg = display->black;
-	scrollbg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x999999FF);
+	viewbg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x222222ff);
+	viewfg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xdb7100ff);
+	scrollbg = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x790000ff);
 	scrollfg = display->white;
 }
 
@@ -352,7 +352,7 @@
 	Point p;
 	int i, h, y;
 
-	draw(screen, screen->r, display->white, nil, ZP);
+	draw(screen, screen->r, display->black, nil, ZP);
 	p = addpt(screen->r.min, Pt(0, Toolpadding));
 	draw(screen, toolr, toolbg, nil, ZP);
 	line(screen, Pt(toolr.min.x, toolr.max.y), toolr.max, 0, 0, 0, toolfg, ZP);
@@ -374,7 +374,7 @@
 		scrposr = Rect(scrollr.min.x, scrollr.min.y+y, scrollr.max.x-1, scrollr.min.y+y+h);
 	}else
 		scrposr = Rect(scrollr.min.x, scrollr.min.y, scrollr.max.x-1, scrollr.max.y);
-	draw(screen, scrposr, display->white, nil, ZP);
+	draw(screen, scrposr, display->black, nil, ZP);
 	for(i = 0; i<nlines && offset+i<ndirs; i++){
 		drawdir(i, 0);
 	}