shithub: nc

Download patch

ref: 64ef9bd789dd7b0cfa5da3d963e7dc134d135ecf
parent: 565aaf2515346d5e33fa1a91d2a5778ab5f3416b
author: phil9 <[email protected]>
date: Fri Dec 30 09:00:09 EST 2022

set path color depending on the panel focus

	this is consistent with the file list

--- a/dirpanel.c
+++ b/dirpanel.c
@@ -143,7 +143,7 @@
 	b = p->focused ? cols[Ctitle] : cols[Cborder];
 	ir = insetrect(r, 2);
 	border(p->b, ir, 2, b, ZP);
-	pt = string(p->b, addpt(ir.min, Pt(4, 2)), cols[Cfg], ZP, font, p->model->path);
+	pt = string(p->b, addpt(ir.min, Pt(4, 2)), p->focused ? cols[Cfg] : cols[Clfg], ZP, font, p->model->path);
 	if(p->model->filter != nil){
 		pt = string(p->b, pt, cols[Clfg], ZP, font, " [");
 		pt = string(p->b, pt, cols[Cfg], ZP, font, p->model->filter);