Updated all objects to new API
This commit is contained in:
@@ -45,8 +45,8 @@ func newScrollbar (orient string) *Scrollbar {
|
||||
this.OnMouseUp(this.handleMouseUp)
|
||||
this.OnMouseMove(this.handleMouseMove)
|
||||
this.OnScroll(this.handleScroll)
|
||||
theme.Apply(this.handle, theme.R("objects", "SliderHandle", orient))
|
||||
theme.Apply(this, theme.R("objects", "Slider", orient))
|
||||
tomo.Apply(this.handle, tomo.R("objects", "SliderHandle", orient))
|
||||
tomo.Apply(this, tomo.R("objects", "Slider", orient))
|
||||
return this
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ func (this *Scrollbar) pageSize () int {
|
||||
|
||||
func (this *Scrollbar) stepSize () int {
|
||||
// FIXME: this should not be hardcoded, need to get base font metrics
|
||||
// from theme somehow. should be (emspace, lineheight)
|
||||
// from tomo.somehow. should be (emspace, lineheight)
|
||||
return 16
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user