From 65c090346a38a8c30cb242d345aa71060116340c Mon Sep 17 00:00:00 2001 From: japanoise Date: Wed, 23 Aug 2023 08:21:37 -0500 Subject: [PATCH] libframe: Match the color of tick Previously the vertical bar in tick was always black; fine if you use the standard black-on-white for everything, but any attempt to add a dark mode ran into trouble with the tick being half hard-coded black, half the new text color. --- src/libframe/frinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libframe/frinit.c b/src/libframe/frinit.c index 90931f25..5e97ceb7 100644 --- a/src/libframe/frinit.c +++ b/src/libframe/frinit.c @@ -52,7 +52,7 @@ frinittick(Frame *f) /* background color */ draw(f->tick, f->tick->r, f->cols[BACK], nil, ZP); /* vertical line */ - draw(f->tick, Rect(f->tickscale*(FRTICKW/2), 0, f->tickscale*(FRTICKW/2+1), ft->height), f->display->black, nil, ZP); + draw(f->tick, Rect(f->tickscale*(FRTICKW/2), 0, f->tickscale*(FRTICKW/2+1), ft->height), f->cols[TEXT], nil, ZP); /* box on each end */ draw(f->tick, Rect(0, 0, f->tickscale*FRTICKW, f->tickscale*FRTICKW), f->cols[TEXT], nil, ZP); draw(f->tick, Rect(0, ft->height-f->tickscale*FRTICKW, f->tickscale*FRTICKW, ft->height), f->cols[TEXT], nil, ZP);