Activity Theme Adjustment

Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 04:20:40 -07:00
co-authored by Nucleic
parent 9243763e05
commit 7ba9b896a3
@@ -14,7 +14,11 @@ struct SessionLiveActivity: Widget {
ActivityConfiguration(for: NucleicSessionAttributes.self) { context in ActivityConfiguration(for: NucleicSessionAttributes.self) { context in
LockScreenView(state: context.state, hostName: context.attributes.hostName) LockScreenView(state: context.state, hostName: context.attributes.hostName)
.widgetURL(context.state.tapURL) .widgetURL(context.state.tapURL)
.activityBackgroundTint(Color.black.opacity(0.55)) // When something needs the user, wash the whole card in the attention tint;
// otherwise the calm dark background (see the border/header cues in LockScreenView).
.activityBackgroundTint(context.state.needsAttention
? ActivityPalette.attentionTint(context.state).opacity(0.28)
: Color.black.opacity(0.55))
.activitySystemActionForegroundColor(.white) .activitySystemActionForegroundColor(.white)
} dynamicIsland: { context in } dynamicIsland: { context in
let state = context.state let state = context.state