color method
- ZetaColors colors
Returns color based on ZetaButtonType
Implementation
ZetaColorSwatch color(ZetaColors colors) {
switch (this) {
case ZetaButtonType.secondary:
return colors.secondary;
case ZetaButtonType.positive:
return colors.surfacePositive;
case ZetaButtonType.negative:
return colors.surfaceNegative;
case ZetaButtonType.outline:
case ZetaButtonType.primary:
return colors.primary;
case ZetaButtonType.outlineSubtle:
case ZetaButtonType.text:
return colors.cool;
}
}