mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
some more highlighting and new place for editor status
Some checks are pending
/ build (push) Waiting to run
Some checks are pending
/ build (push) Waiting to run
This commit is contained in:
parent
48603e4812
commit
3f1a2fee80
2 changed files with 9 additions and 6 deletions
|
|
@ -21,11 +21,10 @@
|
|||
(bsp/s
|
||||
(fixed/y 8 (bsp/e
|
||||
(fixed/x 20 (fill/y (align/n (bsp/s :view-status-v
|
||||
(bsp/s (bsp/s :view-audio-ins-status :view-audio-outs-status)
|
||||
:view-editor-status)))))
|
||||
(bsp/s :view-audio-ins-status :view-audio-outs-status)))))
|
||||
(fill/xy (align/n (bsp/s :view-arranger-track-names
|
||||
(bsp/s :view-arranger-track-outputs
|
||||
(bsp/s :view-arranger-track-devices :view-arranger-track-inputs)))))))
|
||||
(fill/xy (bsp/e
|
||||
(fixed/x 20 (align/nw :view-arranger-scenes-names))
|
||||
(bsp/n (max/y 9 :view-editor-status) (fixed/x 20 (align/nw :view-arranger-scenes-names)))
|
||||
:view-arranger-scenes-clips)))))
|
||||
|
|
|
|||
|
|
@ -325,12 +325,16 @@ pub trait ScenesView: HasSelection + HasSceneScroll + Send + Sync {
|
|||
fn view_scenes_names (&self) -> impl Content<TuiOut> {
|
||||
Stack::south(move|add: &mut dyn FnMut(&dyn Render<TuiOut>)|{
|
||||
for (index, scene) in self.scenes().iter().enumerate().skip(self.scene_scroll()) {
|
||||
add(&Self::view_scene_name(index, scene));
|
||||
add(&self.view_scene_name(index, scene));
|
||||
}
|
||||
})
|
||||
}
|
||||
fn view_scene_name (index: usize, scene: &Scene) -> impl Content<TuiOut> {
|
||||
Fixed::xy(20, 2, Tui::bg(scene.color.dark.rgb, Align::nw(Bsp::e(
|
||||
fn view_scene_name (&self, index: usize, scene: &Scene) -> impl Content<TuiOut> {
|
||||
Fixed::xy(20, 2, Tui::bg(if self.selection().scene() == Some(index) {
|
||||
scene.color.light.rgb
|
||||
} else {
|
||||
scene.color.base.rgb
|
||||
}, Align::nw(Bsp::e(
|
||||
format!(" {index:2} "),
|
||||
Tui::fg(Rgb(255, 255, 255),
|
||||
Tui::bold(true, format!("{}", scene.name)))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue