Update object code to use new containers

This commit is contained in:
2024-09-12 14:54:26 -04:00
parent f1f71208f2
commit 51ce2a84f2
4 changed files with 15 additions and 20 deletions

View File

@@ -139,18 +139,16 @@ func (this *Swatch) Choose () {
})
okButton.OnClick(commit)
controlRow := NewInnerContainer (
layouts.ContractHorizontal,
cancelButton,
okButton)
controlRow.SetAlign(tomo.AlignEnd, tomo.AlignMiddle)
window.SetRoot(NewOuterContainer (
window.SetRoot(NewRoot (
layouts.Column { true, false },
colorPicker,
NewInnerContainer(layouts.Row { false, true },
NewLabel("Hex"),
hexInput),
controlRow))
NewContentSegment (
layouts.Column { true, false },
colorPicker,
NewContainer (
layouts.Row { false, true },
NewLabel("Hex"),
hexInput)),
NewOptionSegment(nil, cancelButton, okButton)))
window.OnClose(func () {
if committed {
this.on.confirm.Broadcast()