QR Code error views (#2678)

Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
Mauro
2024-04-11 10:32:56 +02:00
committed by GitHub
parent eda7d59518
commit 9bc24e2038
21 changed files with 202 additions and 25 deletions
@@ -25,6 +25,7 @@ struct HeroImage: View {
case normal
case positive
case subtle
case critical
var foregroundColor: Color {
switch self {
@@ -34,6 +35,8 @@ struct HeroImage: View {
return .compound.iconSuccessPrimary
case .subtle:
return .compound.iconSecondary
case .critical:
return .compound.iconCriticalPrimary
}
}
@@ -45,6 +48,8 @@ struct HeroImage: View {
return .compound.bgSuccessSubtle
case .subtle:
return .compound.bgSubtlePrimary
case .critical:
return .compound.bgCanvasDefault
}
}
}