diff --git a/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift b/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift index a58e4e3..d1d5dd5 100644 --- a/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift +++ b/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift @@ -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