colors to use token name itself instead of token alias.

This commit is contained in:
Vasavi Kanamarlapudi 2022-04-21 01:29:34 +05:30
parent 05fb8cf5ed
commit 4d407d4377
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ open class CarouselIndicator: Control, CarouselPageControlProtocol {
public var indicatorColor: UIColor {
get {
guard let model = carouselIndicatorModel else { return VDSColor.paletteBlack}
guard let model = carouselIndicatorModel else { return VDSColor.elementsPrimaryOnlight}
return model.inverted ? model.indicatorColor_inverted.uiColor : model.indicatorColor.uiColor
}
set {

View File

@ -32,8 +32,8 @@ open class CarouselIndicatorModel: CarouselPagingModelProtocol, MoleculeModelPro
public var enabled: Bool = true
public var disabledIndicatorColor: Color = Color(uiColor: VDSColor.paletteGray44)
public var disabledIndicatorColor_inverted: Color = Color(uiColor: VDSColor.paletteGray65)
public var indicatorColor: Color = Color(uiColor: VDSColor.paletteBlack)
public var indicatorColor_inverted: Color = Color(uiColor: VDSColor.paletteWhite)
public var indicatorColor: Color = Color(uiColor: VDSColor.elementsPrimaryOnlight)
public var indicatorColor_inverted: Color = Color(uiColor: VDSColor.elementsPrimaryOndark)
public var position: CGFloat?
/// Allows sendActions() to trigger even if index is already at min/max index.