shithub: zuke

Download patch

ref: b7ac99b67ea10e9233812efbf28890f1725ff41e
parent: adadd756eb888bed9229c1b5c1c1277ad1018496
author: Sigrid Haflínudóttir <[email protected]>
date: Tue Aug 18 12:13:12 EDT 2020

better choice of colors

--- a/zuke.c
+++ b/zuke.c
@@ -179,7 +179,7 @@
 			p.x = sp.x = screen->r.min.x + Scrollwidth;
 			p.y = screen->r.min.y;
 			sp.y = screen->r.max.y;
-			line(screen, p, sp, Endsquare, Endsquare, 0, colors[Dfmed].im, ZP);
+			line(screen, p, sp, Endsquare, Endsquare, 0, colors[Dflow].im, ZP);
 
 			r = screen->r;
 			r.max.x = r.min.x + Scrollwidth - 1;
@@ -190,7 +190,7 @@
 				scrollcenter = (Dy(screen->r)-Scrollheight*5/4)*scroll / (plnum - scrollsz);
 			r.min.y += scrollcenter + Scrollheight/4;
 			r.max.y = r.min.y + Scrollheight;
-			draw(screen, r, colors[Dfmed].im, nil, ZP);
+			draw(screen, r, colors[Dblow].im, nil, ZP);
 		}
 
 		p.x = sp.x = left;
@@ -199,7 +199,7 @@
 		for(i = 0; cols[i+1] != 0; i++){
 			p.x += colwidth[i] + 4;
 			sp.x = p.x;
-			line(screen, p, sp, Endsquare, Endsquare, 0, colors[Dfmed].im, ZP);
+			line(screen, p, sp, Endsquare, Endsquare, 0, colors[Dflow].im, ZP);
 			p.x += 4;
 		}
 
@@ -221,7 +221,7 @@
 				draw(screen, sel, colors[Dbinv].im, nil, ZP);
 				col = colors[Dfinv].im;
 			}else{
-				col = colors[pcurplaying == i ? Dfhigh : Dfmed].im;
+				col = colors[Dfmed].im;
 			}
 
 			sel = screen->r;
@@ -240,9 +240,9 @@
 				leftp.y = rightp.y = p.y - 1;
 				leftp.x = left;
 				rightp.x = screen->r.max.x;
-				line(screen, leftp, rightp, 0, 0, 0, colors[Dfmed].im, sp);
+				line(screen, leftp, rightp, 0, 0, 0, colors[Dflow].im, sp);
 				leftp.y = rightp.y = p.y + f->height;
-				line(screen, leftp, rightp, 0, 0, 0, colors[Dfmed].im, sp);
+				line(screen, leftp, rightp, 0, 0, 0, colors[Dflow].im, sp);
 			}
 		}
 	}
@@ -294,10 +294,10 @@
 	seekbar = ZR;
 	if(pcurplaying >= 0 && getmeta(pcurplaying)->duration != 0){
 		r = insetrect(sel, 3);
-		draw(screen, r, colors[Dflow].im, nil, ZP);
+		draw(screen, r, colors[Dback].im, nil, ZP);
 		seekbar = r;
 		r.max.x = r.min.x + Dx(r) * (double)msec / (double)getmeta(pcurplaying)->duration;
-		draw(screen, r, colors[Dbinv].im, nil, ZP);
+		draw(screen, r, colors[Dbmed].im, nil, ZP);
 	}
 
 	flushimage(display, 1);