mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user