mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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.
This commit is contained in:
parent
a36e66f0d2
commit
65c090346a
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ frinittick(Frame *f)
|
||||||
/* background color */
|
/* background color */
|
||||||
draw(f->tick, f->tick->r, f->cols[BACK], nil, ZP);
|
draw(f->tick, f->tick->r, f->cols[BACK], nil, ZP);
|
||||||
/* vertical line */
|
/* 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 */
|
/* 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, 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);
|
draw(f->tick, Rect(0, ft->height-f->tickscale*FRTICKW, f->tickscale*FRTICKW, ft->height), f->cols[TEXT], nil, ZP);
|
||||||
|
|
Loading…
Reference in a new issue