aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjapanoise <japanoise@seekrit.club>2023-08-23 08:21:37 -0500
committerDan Cross <crossd@gmail.com>2023-08-23 14:47:08 -0400
commit65c090346a38a8c30cb242d345aa71060116340c (patch)
tree89db60818afeb3dc7c3b7abe9ceae155f074f7f2 /src
parenta36e66f0d200f99802ad32171c55d26ad44f501d (diff)
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 (limited to 'src')
-rw-r--r--src/libframe/frinit.c2
1 files changed, 1 insertions, 1 deletions
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);