Merge branch 'feature/LineModel-Style' into 'feature/develop_mvp_3'

Supporting Standard/thin style in Line atom

See merge request BPHV_MIPS/mvm_core_ui!844
This commit is contained in:
Pfeil, Scott Robert 2022-04-25 15:02:42 +00:00
commit 336e912c6a

View File

@ -32,6 +32,8 @@ import VDSColorTokens
The style of the line:
- secondary (1 height, silver)
- primary (1 height, black)
- standard (1 height, silver) - deprecated
- thin (1 height, black) - deprecated
- medium (2 height, black)
- heavy (4 height, black)
- none (hidden)
@ -39,6 +41,8 @@ import VDSColorTokens
public enum Style: String, Codable {
case secondary
case primary
case standard
case thin
case medium
case heavy
case none
@ -59,10 +63,10 @@ import VDSColorTokens
get {
if let backgroundColor = _backgroundColor { return backgroundColor }
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)
}
if type == .secondary { return Color(uiColor: VDSColor.paletteGray85) }
if type == .secondary || type == .standard { return Color(uiColor: VDSColor.paletteGray85) }
return Color(uiColor: VDSColor.elementsPrimaryOnlight)
}
set {