Activity Theme Adjustment
Nucleic-Session: 5F808220-F280-49B7-8876-41EE93E714FA Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -223,6 +223,12 @@ private enum ActivityPalette {
|
|||||||
static let added = Color(red: 0.30, green: 0.78, blue: 0.45)
|
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)
|
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 {
|
static func glyph(_ kind: NucleicSessionAttributes.Kind) -> String {
|
||||||
switch kind {
|
switch kind {
|
||||||
case .running: "circle.lefthalf.filled"
|
case .running: "circle.lefthalf.filled"
|
||||||
|
|||||||
Reference in New Issue
Block a user