mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: tek_test again
This commit is contained in:
parent
fa8282a9d5
commit
4c23aed40a
16 changed files with 190 additions and 172 deletions
|
|
@ -38,15 +38,15 @@ pub fn draw <'a, 'b> (
|
|||
let offset = 3 + scene_name_max_len(state.scenes.as_ref()) as u16;
|
||||
let tracks = state.tracks.as_ref();
|
||||
let scenes = state.scenes.as_ref();
|
||||
Layered::new()
|
||||
Layers([
|
||||
//.add_ref(&FillBg(Color::Rgb(30, 33, 36)))//COLOR_BG1))//bg_lo(state.focused, state.entered)))
|
||||
.add_ref(&ColumnSeparators(offset, cols))
|
||||
.add_ref(&RowSeparators(rows))
|
||||
.add_ref(&CursorFocus(state.selected, offset, cols, rows))
|
||||
.add_ref(&Split::down()
|
||||
&ColumnSeparators(offset, cols),
|
||||
&RowSeparators(rows),
|
||||
&CursorFocus(state.selected, offset, cols, rows),
|
||||
&Split::down()
|
||||
.add_ref(&TracksHeader(offset, cols, tracks))
|
||||
.add_ref(&SceneRows(offset, cols, rows, tracks, scenes)))
|
||||
.render(to)
|
||||
.add_ref(&SceneRows(offset, cols, rows, tracks, scenes))
|
||||
]).render(to.with_rect(area))
|
||||
}
|
||||
|
||||
struct ColumnSeparators<'a>(u16, &'a [(usize, usize)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue