mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
WS: Add strip labels in the mixer demo
Plus some minor widget code and layout improvements
This commit is contained in:
parent
63a117bf93
commit
43c1929b7d
2 changed files with 2 additions and 4 deletions
|
|
@ -72,6 +72,7 @@ import { createRootContainer, Container, Dialog, Label, Button, DiscreteKnob,
|
|||
|
||||
const pan = new PanKnob();
|
||||
pan.appendTo(container);
|
||||
|
||||
if (!strip.isVca) {
|
||||
pan.bindTo(strip, 'pan');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,13 +19,10 @@
|
|||
import loadToolkit from './tkloader.js';
|
||||
import { BaseWidget, BaseContainer, BaseDialog, BaseControl } from './widget.js';
|
||||
|
||||
let _tkRoot = null;
|
||||
|
||||
export async function createRootContainer () {
|
||||
await loadToolkit();
|
||||
_tkRoot = new TK.Root({id: 'root'});
|
||||
const root = new Container();
|
||||
root.tk = _tkRoot;
|
||||
root.tk = new TK.Root({id: 'root'});
|
||||
document.body.appendChild(root.element);
|
||||
return root;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue