ref: d6d02abde59db6b66a6b5c628f1feae854315895
parent: 9c0f4aa0e5b57c5903dd6555799547d3be6d58bc
author: aap <aap@papnet.eu>
date: Thu Aug 1 10:51:00 EDT 2024
libframe: always draw tick with current TEXT color.
--- a/sys/src/libframe/frdraw.c
+++ b/sys/src/libframe/frdraw.c
@@ -153,7 +153,7 @@
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;
--- a/sys/src/libframe/frinit.c
+++ b/sys/src/libframe/frinit.c
@@ -48,12 +48,12 @@
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
--
⑨