Update and enable the new bloom style on the home screen. (#4291)

* Update Compound

* Adopt the new accent colour (and gradient) tokens.
This commit is contained in:
Doug
2025-07-07 11:23:03 +01:00
committed by GitHub
parent cca1e12b45
commit 030a9bfbef
139 changed files with 335 additions and 470 deletions
@@ -137,9 +137,9 @@ struct RoomScreen: View {
.padding(.top, 16)
.padding(.horizontal, 16)
.padding(.bottom, 12)
.highlight(borderColor: .compound.borderInfoSubtle,
primaryColor: .compound.bgInfoSubtle,
secondaryColor: .compound.bgCanvasDefault)
.highlight(gradient: .compound.info,
borderColor: .compound.borderInfoSubtle,
backgroundColor: .compound.bgCanvasDefault)
}
@ViewBuilder
@@ -5,6 +5,7 @@
// Please see LICENSE files in the repository root for full details.
//
import Compound
import SwiftUI
struct RoomScreenFooterView: View {
@@ -23,21 +24,23 @@ struct RoomScreenFooterView: View {
}
}
private var gradientColor: Color {
private var gradient: Gradient {
switch details {
case .pinViolation:
.compound.bgInfoSubtle
.compound.info
case .verificationViolation:
.compound.bgCriticalSubtle
Gradient(colors: [.compound.bgCriticalSubtle, .clear])
case .none:
Color.compound.bgCanvasDefault
Gradient(colors: [.clear])
}
}
var body: some View {
if let details {
detailsView(details)
.highlight(borderColor: borderColor, primaryColor: gradientColor, secondaryColor: .compound.bgCanvasDefault)
.highlight(gradient: gradient,
borderColor: borderColor,
backgroundColor: .compound.bgCanvasDefault)
.padding(.top, 8)
.fixedSize(horizontal: false, vertical: true)
}