scene: enlarge height

This commit is contained in:
🪞👃🪞 2025-05-17 13:38:27 +03:00
parent 5ff6868a17
commit d3d60d69c7

View file

@ -333,7 +333,11 @@ pub trait ScenesView: HasEditor + HasSelection + HasSceneScroll + Send + Sync {
})
}
fn view_scene_name (&self, index: usize, scene: &Scene) -> impl Content<TuiOut> {
Fixed::xy(20, 2, Tui::bg(if self.selection().scene() == Some(index) {
Fixed::xy(20, if self.selection().scene() == Some(index) && let Some(editor) = self.editor () {
(editor.height() as u16).max(12)
} else {
Self::H_SCENE as u16
}, Tui::bg(if self.selection().scene() == Some(index) {
scene.color.light.rgb
} else {
scene.color.base.rgb
@ -452,9 +456,19 @@ pub trait ClipsView: TracksView + ScenesView + Send + Sync {
} else {
theme.dark.rgb
};
cell(&Fixed::xy(track.width as u16, 2, Bsp::b(
Fill::xy(Outer(true, Style::default().fg(outline))),
Fill::xy(Align::nw(Tui::fg_bg(fg, bg, Align::nw(name.unwrap_or(" ---- ".into()))))))));
cell(&Fixed::xy(
track.width as u16,
if self.selection().scene() == Some(scene_index)
&& let Some(editor) = self.editor ()
{
(editor.height() as u16).max(12)
} else {
Self::H_SCENE as u16
},
Bsp::b(
Fill::xy(Outer(true, Style::default().fg(outline))),
Fill::xy(Align::nw(Tui::fg_bg(fg, bg, Align::nw(name.unwrap_or(" ---- ".into())))))
)));
//let (name, theme) = if let Some(clip) = &scene.clips.get(track_index).flatten() {
//let clip = clip.read().unwrap();
//(Some(clip.name.clone()), clip.color)