plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 65c090346a38a8c30cb242d345aa71060116340c
parent a36e66f0d200f99802ad32171c55d26ad44f501d
Author: japanoise <japanoise@seekrit.club>
Date:   Wed, 23 Aug 2023 08:21:37 -0500

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.

Diffstat:
Msrc/libframe/frinit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);