display size of note area

This commit is contained in:
🪞👃🪞 2024-10-27 21:20:15 +02:00
parent f60e7ae9ff
commit 130460a22e

View file

@ -155,10 +155,16 @@ impl Content for PhraseEditor<Tui> {
note_clamp.unwrap_or(0),
);
}
let lower_right = format!(
"{}x{}",
self.width.load(Ordering::Relaxed),
self.height.load(Ordering::Relaxed),
);
lay!(
content,
TuiStyle::fg(upper_left.to_string(), title_color).push_x(1).align_nw().fill_xy(),
TuiStyle::fg(upper_right.to_string(), title_color).pull_x(1).align_ne().fill_xy(),
TuiStyle::fg(lower_right.to_string(), title_color).pull_x(1).align_se().fill_xy(),
)
}
}