@@ -21,7 +21,7 @@ extension InformationViewFioriStyle {
2121 @Environment ( \. isEnabled) var isEnabled
2222 func makeBody( _ configuration: InformationViewConfiguration ) -> some View {
2323 InformationView ( configuration)
24- . foregroundColor ( . preferredColor( self . isEnabled ? . tertiaryLabel : . separator ) )
24+ . foregroundColor ( . preferredColor( self . isEnabled ? . tertiaryLabel : . quaternaryLabel ) )
2525 . padding ( . top, 4 )
2626 }
2727 }
@@ -32,7 +32,7 @@ extension InformationViewFioriStyle {
3232
3333 func makeBody( _ configuration: IconConfiguration ) -> some View {
3434 Icon ( configuration)
35- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . tertiaryLabel : . separator ) )
35+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . tertiaryLabel : . quaternaryLabel ) )
3636 . font ( . fiori( forTextStyle: . footnote) )
3737 }
3838 }
@@ -43,7 +43,7 @@ extension InformationViewFioriStyle {
4343
4444 func makeBody( _ configuration: DescriptionConfiguration ) -> some View {
4545 Description ( configuration)
46- . foregroundColor ( . preferredColor( self . isEnabled ? . tertiaryLabel : . separator ) )
46+ . foregroundColor ( . preferredColor( self . isEnabled ? . tertiaryLabel : . quaternaryLabel ) )
4747 . font ( . fiori( forTextStyle: . footnote) )
4848 }
4949 }
@@ -79,15 +79,15 @@ public struct InformationViewErrorStyle: InformationViewStyle {
7979 . iconStyle ( content: { IconConfiguration in
8080 if IconConfiguration . icon. isEmpty {
8181 Image ( systemName: " exclamationmark.circle " )
82- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . separator ) )
82+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . quaternaryLabel ) )
8383 } else {
8484 IconConfiguration . icon
85- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . separator ) )
85+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . quaternaryLabel ) )
8686 }
8787 } )
8888 . descriptionStyle ( content: { descriptionConfiguration in
8989 descriptionConfiguration. description
90- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . separator ) )
90+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . negativeLabel : . quaternaryLabel ) )
9191 } )
9292 }
9393}
@@ -99,15 +99,15 @@ public struct InformationViewWarningStyle: InformationViewStyle {
9999 . iconStyle ( content: { IconConfiguration in
100100 if IconConfiguration . icon. isEmpty {
101101 Image ( systemName: " exclamationmark.triangle " )
102- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . separator ) )
102+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . quaternaryLabel ) )
103103 } else {
104104 IconConfiguration . icon
105- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . separator ) )
105+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . quaternaryLabel ) )
106106 }
107107 } )
108108 . descriptionStyle ( content: { descriptionConfiguration in
109109 descriptionConfiguration. description
110- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . separator ) )
110+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . criticalLabel : . quaternaryLabel ) )
111111 } )
112112 }
113113}
@@ -119,15 +119,15 @@ public struct InformationViewInformationalStyle: InformationViewStyle {
119119 . iconStyle ( content: { IconConfiguration in
120120 if IconConfiguration . icon. isEmpty {
121121 Image ( systemName: " info.circle " )
122- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . separator ) )
122+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . quaternaryLabel ) )
123123 } else {
124124 IconConfiguration . icon
125- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . separator ) )
125+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . quaternaryLabel ) )
126126 }
127127 } )
128128 . descriptionStyle ( content: { descriptionConfiguration in
129129 descriptionConfiguration. description
130- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . separator ) )
130+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . primaryLabel : . quaternaryLabel ) )
131131 } )
132132 }
133133}
@@ -139,15 +139,15 @@ public struct InformationViewSuccessStyle: InformationViewStyle {
139139 . iconStyle ( content: { IconConfiguration in
140140 if IconConfiguration . icon. isEmpty {
141141 Image ( systemName: " checkmark.circle " )
142- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . separator ) )
142+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . quaternaryLabel ) )
143143 } else {
144144 IconConfiguration . icon
145- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . separator ) )
145+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . quaternaryLabel ) )
146146 }
147147 } )
148148 . descriptionStyle ( content: { descriptionConfiguration in
149149 descriptionConfiguration. description
150- . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . separator ) )
150+ . foregroundStyle ( Color . preferredColor ( self . isEnabled ? . positiveLabel : . quaternaryLabel ) )
151151 } )
152152 }
153153}
0 commit comments