mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
show arranger help only on focus
This commit is contained in:
parent
de1eb6ef97
commit
a4269337bc
1 changed files with 6 additions and 4 deletions
|
|
@ -54,11 +54,13 @@ impl Content for Arrangement<Tui> {
|
|||
ArrangementViewMode::Horizontal => add(&HorizontalArranger(&self)),
|
||||
ArrangementViewMode::Vertical(factor) => add(&VerticalArranger(&self, factor))
|
||||
}?;
|
||||
let commands = "[G]et [S]et [A]dd [I]nsert [D]uplicate [C]olor";
|
||||
let lower_left = Align::SW(commands);
|
||||
add(&lower_left)?;
|
||||
if self.focused {
|
||||
let commands = "[G]et [S]et [A]dd [I]nsert [D]uplicate [C]olor";
|
||||
let lower_left = Align::SW(commands.push_x(1));
|
||||
add(&lower_left)?;
|
||||
}
|
||||
let description = self.selected.description(&self.tracks, &self.scenes);
|
||||
let lower_right = Align::SE(description.as_str());
|
||||
let lower_right = Align::SE(description.as_str().pull_x(1));
|
||||
add(&lower_right)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue