From d66b8daf8f57507e357f7fe3da8c1b96eb77fe66 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 04:21:04 -0700 Subject: [PATCH] Activity Theme Adjustment Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA Co-authored-by: Nucleic --- .../NucleicRemoteWidgets/SessionLiveActivity.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift b/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift index ac4ad4f..5e2f336 100644 --- a/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift +++ b/NucleicRemote/NucleicRemoteWidgets/SessionLiveActivity.swift @@ -223,6 +223,12 @@ private enum ActivityPalette { static let added = Color(red: 0.30, green: 0.78, blue: 0.45) static let removed = Color(red: 0.92, green: 0.34, blue: 0.34) + /// The color the "attention needed" theme paints with: approval amber is loudest, else the + /// needs-input teal. Only meaningful when `state.needsAttention` — callers gate on that. + static func attentionTint(_ state: NucleicSessionAttributes.ContentState) -> Color { + state.approvalCount > 0 ? attention : accent + } + static func glyph(_ kind: NucleicSessionAttributes.Kind) -> String { switch kind { case .running: "circle.lefthalf.filled"