Updated all objects to new API

This commit is contained in:
2024-05-26 17:21:58 -04:00
parent 06d99b2790
commit 6389556199
15 changed files with 48 additions and 46 deletions

View File

@@ -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
}