Adjust Live Activity Icon Color

Nucleic-Session: 0849E748-A24E-4E30-90B3-33FD4D06C4DB
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 18:20:22 -07:00
co-authored by Nucleic
parent 20d6a4a8b9
commit 1881d597c7
@@ -50,10 +50,12 @@ struct SessionLiveActivity: Widget {
} }
} }
} compactLeading: { } compactLeading: {
// Calm state shows the Nucleic Control brand mark (the purple atom); when the
// user is needed it switches to the amber approval glyph.
Image(systemName: state.needsAttention Image(systemName: state.needsAttention
? ActivityPalette.glyph(.approval) : ActivityPalette.glyph(.running)) ? ActivityPalette.glyph(.approval) : "atom")
.foregroundStyle(state.needsAttention .foregroundStyle(state.needsAttention
? ActivityPalette.attention : ActivityPalette.active) ? ActivityPalette.attention : ActivityPalette.brand)
} compactTrailing: { } compactTrailing: {
Text("\(state.needsAttention ? max(state.approvalCount, state.needsYouCount) : state.runningCount)") Text("\(state.needsAttention ? max(state.approvalCount, state.needsYouCount) : state.runningCount)")
.font(.caption2.bold()) .font(.caption2.bold())