Compare commits
2 Commits
e62afcd667
...
d01d39569b
Author | SHA1 | Date | |
---|---|---|---|
d01d39569b | |||
55637e36db |
1
label.go
1
label.go
@ -12,5 +12,6 @@ func NewLabel (text string) *Label {
|
||||
this := &Label { TextBox: tomo.NewTextBox() }
|
||||
this.SetRole(tomo.R("objects", "Label", ""))
|
||||
this.SetText(text)
|
||||
this.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
|
||||
return this
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package objects
|
||||
|
||||
import "math"
|
||||
import "image"
|
||||
import "git.tebibyte.media/tomo/tomo"
|
||||
import "git.tebibyte.media/tomo/tomo/input"
|
||||
@ -33,6 +34,7 @@ func newSlider (orient string, value float64) *Slider {
|
||||
},
|
||||
layout: sliderLayout {
|
||||
vertical: orient == "vertical",
|
||||
value: math.NaN(),
|
||||
},
|
||||
step: 0.05,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user