mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +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,
|
.left(self.width_side,
|
||||||
io_ports(Tui::g(224), Tui::g(32), ||self.app.inputs_with_sizes()))
|
io_ports(Tui::g(224), Tui::g(32), ||self.app.inputs_with_sizes()))
|
||||||
.middle(self.width_mid,
|
.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(
|
move|_, &Track { color, .. }|io_conns(
|
||||||
color.dark.rgb,
|
color.dark.rgb,
|
||||||
color.darker.rgb,
|
color.darker.rgb,
|
||||||
|
|
@ -334,7 +334,7 @@ impl<'a> ArrangerView<'a> {
|
||||||
.middle(self.width_mid,
|
.middle(self.width_mid,
|
||||||
per_track_top(
|
per_track_top(
|
||||||
self.width_mid,
|
self.width_mid,
|
||||||
||self.app.tracks_with_sizes(),
|
||self.tracks_with_sizes_scrolled(),
|
||||||
move|t, track|{
|
move|t, track|{
|
||||||
let rec = track.player.recording;
|
let rec = track.player.recording;
|
||||||
let mon = track.player.monitoring;
|
let mon = track.player.monitoring;
|
||||||
|
|
@ -360,7 +360,7 @@ impl<'a> ArrangerView<'a> {
|
||||||
.middle(self.width_mid,
|
.middle(self.width_mid,
|
||||||
per_track_top(
|
per_track_top(
|
||||||
self.width_mid,
|
self.width_mid,
|
||||||
||self.app.tracks_with_sizes(),
|
||self.tracks_with_sizes_scrolled(),
|
||||||
|_, _|Tui::bg(Reset, Align::c(Bsp::s(OctaveVertical::default(), " ------ ")))))
|
|_, _|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()),
|
Bsp::s(self.output_ports(), self.output_conns()),
|
||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn output_nexts (&'a self) -> impl Content<TuiOut> + 'a {
|
fn output_nexts (&'a self) -> impl Content<TuiOut> + 'a {
|
||||||
Tryptich::top(2)
|
Tryptich::top(2)
|
||||||
.left(self.width_side, Align::ne("From clip:"))
|
.left(self.width_side, Align::ne("From clip:"))
|
||||||
|
|
@ -379,6 +380,7 @@ impl<'a> ArrangerView<'a> {
|
||||||
||self.tracks_with_sizes_scrolled(),
|
||self.tracks_with_sizes_scrolled(),
|
||||||
|_, _|Tui::bg(Reset, Align::c(Bsp::s(" ------ ", OctaveVertical::default())))))
|
|_, _|Tui::bg(Reset, Align::c(Bsp::s(" ------ ", OctaveVertical::default())))))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn output_froms (&'a self) -> impl Content<TuiOut> + 'a {
|
fn output_froms (&'a self) -> impl Content<TuiOut> + 'a {
|
||||||
Tryptich::top(2)
|
Tryptich::top(2)
|
||||||
.left(self.width_side, Align::ne("Next clip:"))
|
.left(self.width_side, Align::ne("Next clip:"))
|
||||||
|
|
@ -395,6 +397,7 @@ impl<'a> ArrangerView<'a> {
|
||||||
Thunk::new(||Tui::bg(Reset, " ------ "))
|
Thunk::new(||Tui::bg(Reset, " ------ "))
|
||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn output_ports (&'a self) -> impl Content<TuiOut> + 'a {
|
fn output_ports (&'a self) -> impl Content<TuiOut> + 'a {
|
||||||
Tryptich::top(1)
|
Tryptich::top(1)
|
||||||
.left(self.width_side,
|
.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))))
|
wrap(bg_1, Tui::g(224), Tui::bold(true, Fill::x(Bsp::e(mute, solo))))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn output_conns (&'a self) -> impl Content<TuiOut> + 'a {
|
fn output_conns (&'a self) -> impl Content<TuiOut> + 'a {
|
||||||
Tryptich::top(self.outputs_height)
|
Tryptich::top(self.outputs_height)
|
||||||
.left(self.width_side,
|
.left(self.width_side,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue