From 7ba9b896a3bdf0a2ccaed17b028720c37acc98c0 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 04:20:40 -0700 Subject: [PATCH] Activity Theme Adjustment Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA Co-authored-by: Nucleic --- .../NucleicRemoteWidgets/SessionLiveActivity.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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