v0.5.2: monitor layout change

This commit is contained in:
GABRIEL Sebastian 2026-11-12 14:21:33 +01:00
commit 4eb67a76ec
6 changed files with 53 additions and 39 deletions

View file

@ -102,13 +102,6 @@ fn draw_nibp_box(cr: &Context, x: f64, top: f64, width: f64, height: f64,
let value_width = (width - 35.0).max(30.0);
let small = (height * 0.095).clamp(10.0, 14.0);
let number_size = (height * 0.25).clamp(18.0, 41.0);
// Subtle red outline distinguishes the independent cuff reading box.
let _ = cr.save();
cr.set_source_rgb(0.28, 0.09, 0.10);
cr.set_line_width(1.0);
cr.rectangle(x - 7.0, top, width + 13.0, height - 1.0);
let _ = cr.stroke();
let _ = cr.restore();
text(cr, "NIBP", x, top + height * 0.13, small * 1.15, RED, true);
if in_progress {
text(cr, "MEASURING", x, top + height * 0.27, small, RED, false);