mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
bold track and scene names
This commit is contained in:
parent
491ed81e83
commit
0403d5b54f
1 changed files with 2 additions and 1 deletions
|
|
@ -168,6 +168,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
let name = track.name.read().unwrap();
|
||||
let max_w = w.saturating_sub(1).min(name.len()).max(2);
|
||||
let name = format!("▎{}", &name[0..max_w]);
|
||||
let name = TuiStyle::bold(name, true);
|
||||
let player = &track.player;
|
||||
let clock = &player.clock;
|
||||
let elapsed = player.phrase.as_ref()
|
||||
|
|
@ -187,7 +188,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
// scene titles
|
||||
let scene_name = |scene, playing: bool, height|row!(
|
||||
if playing { "▶ " } else { " " },
|
||||
(scene as &Scene).name.read().unwrap().as_str(),
|
||||
TuiStyle::bold((scene as &Scene).name.read().unwrap().as_str(), true),
|
||||
).fixed_xy(offset.saturating_sub(1), height);
|
||||
|
||||
// scene clips
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue