modularize grid view

This commit is contained in:
i do not exist 2026-09-17 16:53:28 +03:00
parent 922c2e1f2f
commit 5a34025277
4 changed files with 173 additions and 104 deletions

View file

@ -15,10 +15,11 @@
(info Mode selector.)
(keys :axis/y :confirm)
(view
(bar/n 2 (bsp/e :transport :status)
(align/c
(bar/s 2 (align/x (bg (g 12) :logo))
:dialog/menu)))))
(bar/s 2 (pad/x 1 :transport)
(bar/n 2 :status
(align/c
(bar/s 2 (align/x (bg (g 12) :logo))
:dialog/menu))))))
(keys :back (@escape cancel))
(keys :confirm (@enter confirm))
@ -39,16 +40,28 @@
(mode :scene (keys :scene))
(mode :mix (keys :mix))
(view
(bar/n 2 (bsp/e :transport :status)
(bar/s 2 :tracks/outputs
(bar/s 2 :tracks/devices
(bar/s 2 :tracks/names
(bar/n 2 :tracks/inputs
(bar/e 16 :scenes/names :scenes/clips))))))))
(bar/n 2 :status
(bar/s 8
(bar/e 16 (align/nw (pad/x 1 :transport))
(bar/w 16 (bar/s 2 (bar/w 4 :tracks/outputs/add :tracks/outputs/count)
(bar/s 2 (bar/w 4 :tracks/devices/add :tracks/devices/count)
(bar/s 2 (bar/w 4 :tracks/names/add :tracks/names/count)
(bar/w 4 :tracks/inputs/add :tracks/inputs/count))))
(align/x (bar/s 2 :tracks/outputs/cells
(bar/s 2 :tracks/devices/cells
(bar/s 2 :tracks/names/cells
:tracks/inputs/cells))))))
(bar/w 16 (text)
(bar/e 16 :scenes/names
:scenes/clips))))))
(keys :global
(@f1 (dialog :help))
(@f2 (project new))
(@f3 (dialog :history))
(@f6 (dialog :save))
(@f8 (dialog :options))
(@f9 (dialog :load))
(@f10 (dialog :quit)))
(keys :clock
@ -56,10 +69,10 @@
(@shift/space (clock/toggle 0)))
(keys :color
(@c color))
(@c (color)))
(keys :launch
(@q launch))
(@q (launch)))
(keys :scenes
(@shift/S (scenes add))
@ -155,8 +168,8 @@
(@shift/R sampler/record/back))
(keys :sampler/play (@p sampler/play/sample :sample/selected)
(@P sampler/stop/sample :sample/selected))
(keys :sampler/import-export (@shift/f6 dialog :dialog/export/sample)
(@shift/f9 dialog :dialog/import/sample))
(keys :sampler/import-export (@shift/f6 dialog :export/sample)
(@shift/f9 dialog :import/sample))
(keys :sampler/directions (@up sampler/select :sample/above)
(@down sampler/select :sample/below)
(@left sampler/select :sample/to/left)