惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
博客园_首页
T
Tailwind CSS Blog
The Cloudflare Blog
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
D
Docker
Microsoft Azure Blog
Microsoft Azure Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(ios): centralize app accent colors (#94627) · opencla...
zats · 2026-06-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2,8 +2,24 @@ parent_config: ../../config/swiftlint.yml

22
33

included:

44

- Sources

5-

- ../shared/ClawdisNodeKit/Sources

5+

- ShareExtension

6+

- ActivityWidget

7+

- WatchApp

8+

- ../shared/OpenClawKit/Sources/OpenClawChatUI

9+
10+

excluded:

11+

- ../macos

612
713

type_body_length:

814

warning: 900

915

error: 1300

16+
17+

custom_rules:

18+

openclaw_design_colors:

19+

name: "OpenClaw design colors"

20+

excluded:

21+

- Sources/Design/OpenClawBrand.swift

22+

- ../shared/OpenClawKit/Sources/OpenClawChatUI/ChatTheme.swift

23+

regex: '(Color\.accentColor|(^|[^A-Za-z0-9_])\.accentColor\b|Color\.(red|green|orange|cyan|blue|yellow|purple|pink)\b|\.(foregroundStyle|tint|fill|stroke|strokeBorder|background)\(\s*\.(red|green|orange|cyan|blue|yellow|purple|pink)\b|Color\(red:\s*0\s*/\s*255\.0,\s*green:\s*122\s*/\s*255\.0,\s*blue:\s*255\s*/\s*255\.0\))'

24+

message: "Use OpenClawBrand or OpenClawChatTheme design tokens instead of raw accent/status colors."

25+

severity: error

Original file line numberDiff line numberDiff line change

@@ -74,23 +74,30 @@ struct OpenClawLiveActivity: Widget {

7474

private func statusIcon(state: OpenClawActivityAttributes.ContentState) -> some View {

7575

if state.isConnecting {

7676

Image(systemName: "arrow.triangle.2.circlepath")

77-

.foregroundStyle(.cyan)

77+

.foregroundStyle(OpenClawActivityStyle.info)

7878

} else if state.isDisconnected {

7979

Image(systemName: "wifi.slash")

80-

.foregroundStyle(.red)

80+

.foregroundStyle(OpenClawActivityStyle.danger)

8181

} else if state.isIdle {

8282

Image(systemName: "checkmark")

83-

.foregroundStyle(.green)

83+

.foregroundStyle(OpenClawActivityStyle.ok)

8484

} else {

8585

Image(systemName: "exclamationmark.triangle.fill")

86-

.foregroundStyle(.orange)

86+

.foregroundStyle(OpenClawActivityStyle.warn)

8787

}

8888

}

8989
9090

private func dotColor(state: OpenClawActivityAttributes.ContentState) -> Color {

91-

if state.isDisconnected { return .red }

92-

if state.isConnecting { return .cyan }

93-

if state.isIdle { return .green }

94-

return .orange

91+

if state.isDisconnected { return OpenClawActivityStyle.danger }

92+

if state.isConnecting { return OpenClawActivityStyle.info }

93+

if state.isIdle { return OpenClawActivityStyle.ok }

94+

return OpenClawActivityStyle.warn

9595

}

9696

}

97+
98+

private enum OpenClawActivityStyle {

99+

static let info = Color(red: 0, green: 122 / 255.0, blue: 1)

100+

static let danger = Color(red: 185 / 255.0, green: 28 / 255.0, blue: 28 / 255.0)

101+

static let ok = Color(red: 34 / 255.0, green: 197 / 255.0, blue: 94 / 255.0)

102+

static let warn = Color(red: 245 / 255.0, green: 158 / 255.0, blue: 11 / 255.0)

103+

}

Original file line numberDiff line numberDiff line change

@@ -506,7 +506,7 @@ extension AgentProTab {

506506
507507

func skillEditorSwitchIndicator(isOn: Bool) -> some View {

508508

Capsule()

509-

.fill(isOn ? Color.accentColor : Color.secondary.opacity(0.35))

509+

.fill(isOn ? OpenClawBrand.accent : Color.secondary.opacity(0.35))

510510

.frame(width: 52, height: 32)

511511

.overlay(alignment: isOn ? .trailing : .leading) {

512512

Circle()

Original file line numberDiff line numberDiff line change

@@ -105,7 +105,7 @@ struct AgentProTab: View {

105105

var color: Color {

106106

switch self {

107107

case .online: OpenClawBrand.ok

108-

case .ready: Color(red: 0 / 255.0, green: 122 / 255.0, blue: 255 / 255.0)

108+

case .ready: OpenClawBrand.info

109109

}

110110

}

111111

}

Original file line numberDiff line numberDiff line change

@@ -277,7 +277,7 @@ struct ChatProTab: View {

277277

}

278278
279279

private var chatUserAccent: Color {

280-

self.colorScheme == .light ? Color(red: 0 / 255.0, green: 122 / 255.0, blue: 255 / 255.0) : OpenClawBrand.accent

280+

self.colorScheme == .light ? OpenClawBrand.info : OpenClawBrand.accent

281281

}

282282
283283

private var activeAgent: AgentSummary? {

Original file line numberDiff line numberDiff line change

@@ -1036,7 +1036,7 @@ struct IPadSkillProposalRow: View {

10361036

.padding(.horizontal, 14)

10371037

.padding(.vertical, 10)

10381038

.background(

1039-

self.isSelected ? Color.red.opacity(0.08) : Color.clear,

1039+

self.isSelected ? OpenClawBrand.danger.opacity(0.08) : Color.clear,

10401040

in: RoundedRectangle(cornerRadius: 8, style: .continuous))

10411041

}

10421042

}

Original file line numberDiff line numberDiff line change

@@ -47,11 +47,13 @@ enum AppAppearancePreference: String, CaseIterable, Identifiable {

4747

}

4848
4949

enum OpenClawBrand {

50-

static let accent = Color(uiColor: UIColor { traits in

50+

static let uiAccent = UIColor { traits in

5151

traits.userInterfaceStyle == .dark

5252

? UIColor(red: 198 / 255.0, green: 62 / 255.0, blue: 56 / 255.0, alpha: 1)

5353

: UIColor(red: 183 / 255.0, green: 56 / 255.0, blue: 51 / 255.0, alpha: 1)

54-

})

54+

}

55+
56+

static let accent = Color(uiColor: Self.uiAccent)

5557

static let accentHot = Color(uiColor: UIColor { traits in

5658

traits.userInterfaceStyle == .dark

5759

? UIColor(red: 232 / 255.0, green: 92 / 255.0, blue: 86 / 255.0, alpha: 1)

@@ -64,6 +66,7 @@ enum OpenClawBrand {

6466

})

6567

static let ok = Color(red: 34 / 255.0, green: 197 / 255.0, blue: 94 / 255.0)

6668

static let warn = Color(red: 245 / 255.0, green: 158 / 255.0, blue: 11 / 255.0)

69+

static let info = Color(red: 0 / 255.0, green: 122 / 255.0, blue: 255 / 255.0)

6770

static let graphite = Color(uiColor: UIColor { traits in

6871

traits.userInterfaceStyle == .dark

6972

? UIColor(red: 20 / 255.0, green: 22 / 255.0, blue: 24 / 255.0, alpha: 1)

Original file line numberDiff line numberDiff line change

@@ -119,7 +119,7 @@ extension SettingsProTab {

119119

self.gatewayActionButton(

120120

title: "Diagnose",

121121

icon: "cross.case",

122-

color: Color(red: 0 / 255.0, green: 122 / 255.0, blue: 255 / 255.0),

122+

color: OpenClawBrand.info,

123123

isBusy: self.isRefreshingGateway)

124124

{

125125

Task { await self.runDiagnostics() }

@@ -476,7 +476,7 @@ extension SettingsProTab {

476476

self.gatewayActionButton(

477477

title: "Run Diagnostics",

478478

icon: "cross.case",

479-

color: Color(red: 0 / 255.0, green: 122 / 255.0, blue: 255 / 255.0),

479+

color: OpenClawBrand.info,

480480

isBusy: self.isRefreshingGateway)

481481

{

482482

Task { await self.runDiagnostics() }

@@ -1040,7 +1040,7 @@ extension SettingsProTab {

10401040
10411041

func settingsSwitchIndicator(isOn: Bool) -> some View {

10421042

Capsule()

1043-

.fill(isOn ? Color.accentColor : Color.secondary.opacity(0.35))

1043+

.fill(isOn ? OpenClawBrand.accent : Color.secondary.opacity(0.35))

10441044

.frame(width: 52, height: 32)

10451045

.overlay(alignment: isOn ? .trailing : .leading) {

10461046

Circle()

Original file line numberDiff line numberDiff line change

@@ -90,7 +90,7 @@ private struct ExecApprovalPromptCard: View {

9090

if let errorText = self.normalized(self.errorText) {

9191

Text(errorText)

9292

.font(.footnote)

93-

.foregroundStyle(.red)

93+

.foregroundStyle(OpenClawBrand.danger)

9494

}

9595
9696

if self.isResolving {

Original file line numberDiff line numberDiff line change

@@ -40,7 +40,7 @@ struct OnboardingIntroStep: View {

4040

HStack(alignment: .top, spacing: 12) {

4141

Image(systemName: "exclamationmark.triangle.fill")

4242

.font(.title3.weight(.semibold))

43-

.foregroundStyle(.orange)

43+

.foregroundStyle(OpenClawBrand.warn)

4444

.frame(width: 24)

4545

.padding(.top, 2)

4646

@@ -177,7 +177,7 @@ struct OnboardingModeRow: View {

177177

}

178178

Spacer()

179179

Image(systemName: self.selected ? "checkmark.circle.fill" : "circle")

180-

.foregroundStyle(self.selected ? Color.accentColor : Color.secondary)

180+

.foregroundStyle(self.selected ? OpenClawBrand.accent : Color.secondary)

181181

}

182182

.contentShape(Rectangle())

183183

}