Updated all objects to new API
This commit is contained in:
@@ -28,13 +28,13 @@ func NewNumberInput (value float64) *NumberInput {
|
||||
increment: NewButton(""),
|
||||
decrement: NewButton(""),
|
||||
}
|
||||
theme.Apply(box, theme.R("objects", "NumberInput", ""))
|
||||
tomo.Apply(box, tomo.R("objects", "NumberInput", ""))
|
||||
box.Add(box.input)
|
||||
box.Add(box.decrement)
|
||||
box.Add(box.increment)
|
||||
box.SetLayout(layouts.NewGrid([]bool { true, false, false }, []bool { true }))
|
||||
box.increment.SetIcon(theme.IconActionIncrement)
|
||||
box.decrement.SetIcon(theme.IconActionDecrement)
|
||||
box.increment.SetIcon(tomo.IconListAdd) // FIXME: need incr/decrment icons
|
||||
box.decrement.SetIcon(tomo.IconListRemove)
|
||||
|
||||
box.SetValue(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user