Changed Theme.Color to Theme.RGBA

This commit is contained in:
Sasha Koshka 2024-05-03 15:29:04 -04:00
parent 4a400b68c2
commit f45476a5c9

View File

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