libframe: always draw tick with current TEXT color.

This commit is contained in:
aap 2024-08-01 14:51:00 +00:00
parent 9c0f4aa0e5
commit d6d02abde5
2 changed files with 5 additions and 5 deletions

View file

@ -153,7 +153,7 @@ frtick(Frame *f, Point pt, int ticked)
r.max.x = f->r.max.x;
if(ticked){
draw(f->tickback, f->tickback->r, f->b, nil, pt);
draw(f->b, r, f->tick, nil, ZP);
draw(f->b, r, f->cols[TEXT], f->tick, ZP);
}else
draw(f->b, r, f->tickback, nil, ZP);
f->ticked = ticked;

View file

@ -48,12 +48,12 @@ frinittick(Frame *f)
return;
}
/* background color */
draw(f->tick, f->tick->r, f->cols[BACK], nil, ZP);
draw(f->tick, f->tick->r, display->black, nil, ZP);
/* vertical line */
draw(f->tick, Rect(FRTICKW/2, 0, FRTICKW/2+1, ft->height), f->cols[TEXT], nil, ZP);
draw(f->tick, Rect(FRTICKW/2, 0, FRTICKW/2+1, ft->height), display->white, nil, ZP);
/* box on each end */
draw(f->tick, Rect(0, 0, FRTICKW, FRTICKW), f->cols[TEXT], nil, ZP);
draw(f->tick, Rect(0, ft->height-FRTICKW, FRTICKW, ft->height), f->cols[TEXT], nil, ZP);
draw(f->tick, Rect(0, 0, FRTICKW, FRTICKW), display->white, nil, ZP);
draw(f->tick, Rect(0, ft->height-FRTICKW, FRTICKW, ft->height), display->white, nil, ZP);
}
void