Audit of 9af1463
This commit is contained in:
@@ -4,7 +4,7 @@ import SwiftUI
|
||||
enum Palette {
|
||||
static let bg = dynamic(0xfbfbfa, 0x15171a)
|
||||
static let surface = dynamic(0xf2f3f5, 0x1c1f23)
|
||||
static let raised = dynamic(0xffffff, 0x23272c)
|
||||
static let raised = dynamic(0xf8f9fa, 0x23272c)
|
||||
static let border = dynamic(0xd6d9de, 0x353b43)
|
||||
static let text = dynamic(0x16181b, 0xeceff3)
|
||||
static let muted = dynamic(0x4a5260, 0xa9b1bc)
|
||||
|
||||
@@ -8,7 +8,7 @@ typealias StageAttempt = Components.Schemas.StageAttempt
|
||||
private let stateColors: [RunStage.StatePayload: NodeColors] = [
|
||||
.waiting: NodeColors(fill: Palette.surface, stroke: Palette.border, text: Palette.muted),
|
||||
.running: NodeColors(fill: Palette.accentTint, stroke: Palette.accent, text: Palette.text),
|
||||
.idle: NodeColors(fill: Palette.warnTint, stroke: Palette.warn, text: Palette.text),
|
||||
.idle: NodeColors(fill: Palette.surface, stroke: Palette.border, text: Palette.muted),
|
||||
.finished: NodeColors(fill: Palette.okTint, stroke: Palette.ok, text: Palette.text),
|
||||
.merged: NodeColors(fill: Palette.okTint, stroke: Palette.ok, text: Palette.text),
|
||||
.cleanedUp: NodeColors(fill: Palette.okTint, stroke: Palette.ok, text: Palette.text),
|
||||
@@ -57,7 +57,7 @@ private func stageLabel(_ s: RunStage) -> String {
|
||||
private func stateColor(_ state: String) -> Color {
|
||||
switch state {
|
||||
case "running": Palette.accent
|
||||
case "idle", "discarding": Palette.warn
|
||||
case "idle", "discarding": Palette.muted
|
||||
case "finished", "merged": Palette.ok
|
||||
default: Palette.muted
|
||||
}
|
||||
@@ -239,7 +239,7 @@ private struct AttemptRow: View {
|
||||
.font(Fonts.font(11))
|
||||
.foregroundStyle(stateColor(a.state.rawValue))
|
||||
if a.discarding {
|
||||
Text("discarding…").font(Fonts.font(11)).foregroundStyle(Palette.warn)
|
||||
Text("discarding…").font(Fonts.font(11)).foregroundStyle(Palette.muted)
|
||||
}
|
||||
}
|
||||
if let from = a.forkedFrom {
|
||||
|
||||
Reference in New Issue
Block a user