Changed Theme.Color to Theme.RGBA
This commit is contained in:
parent
4a400b68c2
commit
f45476a5c9
@ -161,7 +161,7 @@ func (this *Theme) Apply (object tomo.Object, role theme.Role) event.Cookie {
|
||||
|
||||
}
|
||||
|
||||
func (this *Theme) Color (c theme.Color) (r, g, b, a uint32) {
|
||||
func (this *Theme) RGBA (c theme.Color) (r, g, b, a uint32) {
|
||||
if this.Colors == nil { return 0xFFFF, 0, 0xFFFF, 0xFFFF }
|
||||
color, ok := this.Colors[c]
|
||||
if !ok { return 0xFFFF, 0, 0xFFFF, 0xFFFF }
|
||||
|
Loading…
Reference in New Issue
Block a user