Supporting Standard/thin style in Line atom
This commit is contained in:
parent
9e06d999fb
commit
05f96d1a01
@ -32,6 +32,8 @@ import VDSColorTokens
|
|||||||
The style of the line:
|
The style of the line:
|
||||||
- secondary (1 height, silver)
|
- secondary (1 height, silver)
|
||||||
- primary (1 height, black)
|
- primary (1 height, black)
|
||||||
|
- standard (1 height, silver) - deprecated
|
||||||
|
- thin (1 height, black) - deprecated
|
||||||
- medium (2 height, black)
|
- medium (2 height, black)
|
||||||
- heavy (4 height, black)
|
- heavy (4 height, black)
|
||||||
- none (hidden)
|
- none (hidden)
|
||||||
@ -39,6 +41,8 @@ import VDSColorTokens
|
|||||||
public enum Style: String, Codable {
|
public enum Style: String, Codable {
|
||||||
case secondary
|
case secondary
|
||||||
case primary
|
case primary
|
||||||
|
case standard
|
||||||
|
case thin
|
||||||
case medium
|
case medium
|
||||||
case heavy
|
case heavy
|
||||||
case none
|
case none
|
||||||
@ -59,10 +63,10 @@ import VDSColorTokens
|
|||||||
get {
|
get {
|
||||||
if let backgroundColor = _backgroundColor { return backgroundColor }
|
if let backgroundColor = _backgroundColor { return backgroundColor }
|
||||||
if inverted {
|
if inverted {
|
||||||
if type == .secondary { return Color(uiColor: VDSColor.paletteGray20) }
|
if type == .secondary || type == .standard { return Color(uiColor: VDSColor.paletteGray20) }
|
||||||
return Color(uiColor: VDSColor.elementsPrimaryOndark)
|
return Color(uiColor: VDSColor.elementsPrimaryOndark)
|
||||||
}
|
}
|
||||||
if type == .secondary { return Color(uiColor: VDSColor.paletteGray85) }
|
if type == .secondary || type == .standard { return Color(uiColor: VDSColor.paletteGray85) }
|
||||||
return Color(uiColor: VDSColor.elementsPrimaryOnlight)
|
return Color(uiColor: VDSColor.elementsPrimaryOnlight)
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user