mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
apply scroll to input headers
This commit is contained in:
parent
8adbdc5bc7
commit
c367a0444e
1 changed files with 7 additions and 3 deletions
|
|
@ -317,7 +317,7 @@ impl<'a> ArrangerView<'a> {
|
|||
.left(self.width_side,
|
||||
io_ports(Tui::g(224), Tui::g(32), ||self.app.inputs_with_sizes()))
|
||||
.middle(self.width_mid,
|
||||
per_track_top(self.width_mid, ||self.app.tracks_with_sizes(),
|
||||
per_track_top(self.width_mid, ||self.tracks_with_sizes_scrolled(),
|
||||
move|_, &Track { color, .. }|io_conns(
|
||||
color.dark.rgb,
|
||||
color.darker.rgb,
|
||||
|
|
@ -334,7 +334,7 @@ impl<'a> ArrangerView<'a> {
|
|||
.middle(self.width_mid,
|
||||
per_track_top(
|
||||
self.width_mid,
|
||||
||self.app.tracks_with_sizes(),
|
||||
||self.tracks_with_sizes_scrolled(),
|
||||
move|t, track|{
|
||||
let rec = track.player.recording;
|
||||
let mon = track.player.monitoring;
|
||||
|
|
@ -360,7 +360,7 @@ impl<'a> ArrangerView<'a> {
|
|||
.middle(self.width_mid,
|
||||
per_track_top(
|
||||
self.width_mid,
|
||||
||self.app.tracks_with_sizes(),
|
||||
||self.tracks_with_sizes_scrolled(),
|
||||
|_, _|Tui::bg(Reset, Align::c(Bsp::s(OctaveVertical::default(), " ------ ")))))
|
||||
}
|
||||
|
||||
|
|
@ -371,6 +371,7 @@ impl<'a> ArrangerView<'a> {
|
|||
Bsp::s(self.output_ports(), self.output_conns()),
|
||||
)))
|
||||
}
|
||||
|
||||
fn output_nexts (&'a self) -> impl Content<TuiOut> + 'a {
|
||||
Tryptich::top(2)
|
||||
.left(self.width_side, Align::ne("From clip:"))
|
||||
|
|
@ -379,6 +380,7 @@ impl<'a> ArrangerView<'a> {
|
|||
||self.tracks_with_sizes_scrolled(),
|
||||
|_, _|Tui::bg(Reset, Align::c(Bsp::s(" ------ ", OctaveVertical::default())))))
|
||||
}
|
||||
|
||||
fn output_froms (&'a self) -> impl Content<TuiOut> + 'a {
|
||||
Tryptich::top(2)
|
||||
.left(self.width_side, Align::ne("Next clip:"))
|
||||
|
|
@ -395,6 +397,7 @@ impl<'a> ArrangerView<'a> {
|
|||
Thunk::new(||Tui::bg(Reset, " ------ "))
|
||||
)))
|
||||
}
|
||||
|
||||
fn output_ports (&'a self) -> impl Content<TuiOut> + 'a {
|
||||
Tryptich::top(1)
|
||||
.left(self.width_side,
|
||||
|
|
@ -421,6 +424,7 @@ impl<'a> ArrangerView<'a> {
|
|||
wrap(bg_1, Tui::g(224), Tui::bold(true, Fill::x(Bsp::e(mute, solo))))
|
||||
}))
|
||||
}
|
||||
|
||||
fn output_conns (&'a self) -> impl Content<TuiOut> + 'a {
|
||||
Tryptich::top(self.outputs_height)
|
||||
.left(self.width_side,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue