Update object code to use new containers
This commit is contained in:
11
dialog.go
11
dialog.go
@@ -16,7 +16,6 @@ type DialogKind int; const (
|
||||
// Dialog is a modal dialog window.
|
||||
type Dialog struct {
|
||||
tomo.Window
|
||||
controlRow *Container
|
||||
}
|
||||
|
||||
type clickable interface {
|
||||
@@ -65,13 +64,11 @@ func NewDialog (kind DialogKind, parent tomo.Window, title, message string, opti
|
||||
})
|
||||
}
|
||||
}
|
||||
dialog.controlRow = NewInnerContainer(layouts.ContractHorizontal, options...)
|
||||
dialog.controlRow.SetAlign(tomo.AlignEnd, tomo.AlignEnd)
|
||||
|
||||
dialog.SetRoot(NewOuterContainer (
|
||||
|
||||
dialog.SetRoot(NewRoot (
|
||||
layouts.Column { true, false },
|
||||
NewInnerContainer(layouts.ContractHorizontal, icon, messageText),
|
||||
dialog.controlRow))
|
||||
NewContentSegment(layouts.ContractHorizontal, icon, messageText),
|
||||
NewOptionSegment(nil, options...)))
|
||||
return dialog, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user