Update other objects to use new methods of Label

This commit is contained in:
2024-08-24 19:56:58 -04:00
parent c7caa5bcb6
commit 3aa4b12ffe
6 changed files with 10 additions and 10 deletions

View File

@@ -23,9 +23,9 @@ func NewLabelCheckbox (value bool, text string) *LabelCheckbox {
label: NewLabel(text),
}
labelCheckbox.box.SetRole(tomo.R("objects", "LabelCheckbox"))
labelCheckbox.label.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))
labelCheckbox.label.SetSelectable(false)
labelCheckbox.label.SetFocusable(false)
labelCheckbox.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
labelCheckbox.label.GetBox().(tomo.TextBox).SetSelectable(false)
labelCheckbox.label.GetBox().(tomo.TextBox).SetFocusable(false)
labelCheckbox.box.Add(labelCheckbox.checkbox)
labelCheckbox.box.Add(labelCheckbox.label)
labelCheckbox.box.SetAttr(tomo.ALayout(layouts.Row { false, true }))