mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
scene: enlarge height
This commit is contained in:
parent
5ff6868a17
commit
d3d60d69c7
1 changed files with 18 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue