mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
display size of note area
This commit is contained in:
parent
f60e7ae9ff
commit
130460a22e
1 changed files with 6 additions and 0 deletions
|
|
@ -155,10 +155,16 @@ impl Content for PhraseEditor<Tui> {
|
||||||
note_clamp.unwrap_or(0),
|
note_clamp.unwrap_or(0),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
let lower_right = format!(
|
||||||
|
"{}x{}",
|
||||||
|
self.width.load(Ordering::Relaxed),
|
||||||
|
self.height.load(Ordering::Relaxed),
|
||||||
|
);
|
||||||
lay!(
|
lay!(
|
||||||
content,
|
content,
|
||||||
TuiStyle::fg(upper_left.to_string(), title_color).push_x(1).align_nw().fill_xy(),
|
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(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(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue