mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
expand trackwards
This commit is contained in:
parent
d3d60d69c7
commit
b0393184fa
1 changed files with 17 additions and 5 deletions
|
|
@ -425,7 +425,13 @@ pub trait ClipsView: TracksView + ScenesView + Send + Sync {
|
||||||
{
|
{
|
||||||
//column(&Fixed::x(5, Fill::xy(Tui::bg(Green, "kyp"))));
|
//column(&Fixed::x(5, Fill::xy(Tui::bg(Green, "kyp"))));
|
||||||
column(&Fixed::x(
|
column(&Fixed::x(
|
||||||
track.width as u16,
|
if self.selection().track() == Some(track_index)
|
||||||
|
&& let Some(editor) = self.editor ()
|
||||||
|
{
|
||||||
|
editor.width().max(24).max(track.width)
|
||||||
|
} else {
|
||||||
|
track.width
|
||||||
|
} as u16,
|
||||||
Fill::y(self.view_track_clips(track_index, track))
|
Fill::y(self.view_track_clips(track_index, track))
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
@ -457,14 +463,20 @@ pub trait ClipsView: TracksView + ScenesView + Send + Sync {
|
||||||
theme.dark.rgb
|
theme.dark.rgb
|
||||||
};
|
};
|
||||||
cell(&Fixed::xy(
|
cell(&Fixed::xy(
|
||||||
track.width as u16,
|
if self.selection().track() == Some(track_index)
|
||||||
|
&& let Some(editor) = self.editor ()
|
||||||
|
{
|
||||||
|
editor.width().max(24).max(track.width)
|
||||||
|
} else {
|
||||||
|
track.width
|
||||||
|
} as u16,
|
||||||
if self.selection().scene() == Some(scene_index)
|
if self.selection().scene() == Some(scene_index)
|
||||||
&& let Some(editor) = self.editor ()
|
&& let Some(editor) = self.editor ()
|
||||||
{
|
{
|
||||||
(editor.height() as u16).max(12)
|
editor.height().max(12)
|
||||||
} else {
|
} else {
|
||||||
Self::H_SCENE as u16
|
Self::H_SCENE
|
||||||
},
|
} as u16,
|
||||||
Bsp::b(
|
Bsp::b(
|
||||||
Fill::xy(Outer(true, Style::default().fg(outline))),
|
Fill::xy(Outer(true, Style::default().fg(outline))),
|
||||||
Fill::xy(Align::nw(Tui::fg_bg(fg, bg, Align::nw(name.unwrap_or(" ---- ".into())))))
|
Fill::xy(Align::nw(Tui::fg_bg(fg, bg, Align::nw(name.unwrap_or(" ---- ".into())))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue