Update internal theme to use Roles stored within Boxes

This commit is contained in:
Sasha Koshka 2024-06-03 21:59:28 -04:00
parent 4bb7539718
commit 8bd6fac8a8

View File

@ -186,10 +186,11 @@ func (this *Theme) setsFor (role tomo.Role) (defaul, hovered, pressed, focused A
return defaul, hovered, pressed, focused
}
func (this *Theme) Apply (object tomo.Object, role tomo.Role) event.Cookie {
func (this *Theme) Apply (object tomo.Object) event.Cookie {
pressed := false
hovered := false
box := object.GetBox()
box := object.GetBox()
role := box.Role()
defaultSet, hoveredSet, pressedSet, focusedSet := this.setsFor(role)