Update internal theme to use Roles stored within Boxes
This commit is contained in:
parent
4bb7539718
commit
8bd6fac8a8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user