mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
add title to arrangement grid
This commit is contained in:
parent
944cf984ef
commit
79ee7081e6
1 changed files with 7 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
let tracks: &[ArrangementTrack<Tui>] = state.tracks.as_ref();
|
||||
let scenes: &[Scene] = state.scenes.as_ref();
|
||||
let offset = 4 + Scene::longest_name(scenes) as u16;
|
||||
Layers::new(move |add|{
|
||||
let content = Layers::new(move |add|{
|
||||
let rows: &[(usize, usize)] = rows.as_ref();
|
||||
let cols: &[(usize, usize)] = cols.as_ref();
|
||||
|
||||
|
|
@ -214,7 +214,12 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
Color::Rgb(100, 110, 40)
|
||||
} else {
|
||||
Color::Rgb(70, 80, 50)
|
||||
})))
|
||||
})));
|
||||
lay!(content, TuiStyle::fg("Session", if self.0.focused {
|
||||
Color::Rgb(150, 160, 90)
|
||||
} else {
|
||||
Color::Rgb(120, 130, 100)
|
||||
}).push_x(1))
|
||||
}
|
||||
}
|
||||
impl<'a> Widget for VerticalArrangerGrid<'a> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue