Activity Theme Adjustment
Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -14,7 +14,11 @@ struct SessionLiveActivity: Widget {
|
||||
ActivityConfiguration(for: NucleicSessionAttributes.self) { context in
|
||||
LockScreenView(state: context.state, hostName: context.attributes.hostName)
|
||||
.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)
|
||||
} dynamicIsland: { context in
|
||||
let state = context.state
|
||||
|
||||
Reference in New Issue
Block a user