Activity Theme Adjustment

Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 04:21:04 -07:00
co-authored by Nucleic
parent baa59f4c22
commit d66b8daf8f
@@ -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"