Adjust Live Activity Icon Color
Nucleic-Session: 0849E748-A24E-4E30-90B3-33FD4D06C4DB Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -50,10 +50,12 @@ struct SessionLiveActivity: Widget {
|
||||
}
|
||||
}
|
||||
} 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
|
||||
? ActivityPalette.glyph(.approval) : ActivityPalette.glyph(.running))
|
||||
? ActivityPalette.glyph(.approval) : "atom")
|
||||
.foregroundStyle(state.needsAttention
|
||||
? ActivityPalette.attention : ActivityPalette.active)
|
||||
? ActivityPalette.attention : ActivityPalette.brand)
|
||||
} compactTrailing: {
|
||||
Text("\(state.needsAttention ? max(state.approvalCount, state.needsYouCount) : state.runningCount)")
|
||||
.font(.caption2.bold())
|
||||
|
||||
Reference in New Issue
Block a user