secondary button background color

This commit is contained in:
Sumanth Nadigadda 2022-04-25 23:32:09 +05:30
parent 8f234259b0
commit a53548522d

View File

@ -66,7 +66,7 @@ open class ButtonModel: ButtonModelProtocol, MoleculeModelProtocol, FormGroupWat
if style == .secondary { return Color(uiColor: VDSColor.elementsSecondaryOndark) } if style == .secondary { return Color(uiColor: VDSColor.elementsSecondaryOndark) }
return Color(uiColor: VDSColor.elementsPrimaryOndark) return Color(uiColor: VDSColor.elementsPrimaryOndark)
} }
if style == .secondary { return Color(uiColor: VDSColor.elementsSecondaryOnlight) } if style == .secondary { return Color(uiColor: UIColor.clear) }
return Color(uiColor: VDSColor.elementsPrimaryOnlight) return Color(uiColor: VDSColor.elementsPrimaryOnlight)
} }
set { set {
@ -162,7 +162,7 @@ open class ButtonModel: ButtonModelProtocol, MoleculeModelProtocol, FormGroupWat
} }
enabledTextColor_inverted = Color(uiColor: VDSColor.elementsPrimaryOndark) enabledTextColor_inverted = Color(uiColor: VDSColor.elementsPrimaryOndark)
enabledFillColor_inverted = Color(uiColor: VDSColor.elementsPrimaryOnlight) enabledFillColor_inverted = Color(uiColor: UIColor.clear)
enabledBorderColor_inverted = Color(uiColor: VDSColor.elementsPrimaryOnlight) enabledBorderColor_inverted = Color(uiColor: VDSColor.elementsPrimaryOnlight)
disabledTextColor_inverted = Color(uiColor: VDSColor.interactiveDisabledOndark) disabledTextColor_inverted = Color(uiColor: VDSColor.interactiveDisabledOndark)
disabledBorderColor_inverted = Color(uiColor: VDSColor.interactiveDisabledOndark) disabledBorderColor_inverted = Color(uiColor: VDSColor.interactiveDisabledOndark)