fix(ios): dark-appearance-first + readable dirty badge (gold-on-light contrast)

Amber-gold accent is designed for the desktop's warm-dark background; on light
mode gold text/badges wash out. Match the desktop (dark theme by default):
.preferredColorScheme(.dark) at the root. DirtyBadge becomes a soft filled
capsule (amber on amber-18%) instead of amber-on-quaternary, readable in any mode.
This commit is contained in:
Yaojia Wang
2026-07-06 08:10:34 +02:00
parent a887638557
commit d36deb6922
2 changed files with 7 additions and 2 deletions

View File

@@ -259,11 +259,12 @@ struct ProjectDetailScreen: View {
struct DirtyBadge: View { struct DirtyBadge: View {
var body: some View { var body: some View {
Text(ProjectsCopy.dirtyBadge) Text(ProjectsCopy.dirtyBadge)
.font(DS.Typography.caption) .font(DS.Typography.caption.weight(.medium))
// amber + amber
.foregroundStyle(DS.Palette.statusWaiting) .foregroundStyle(DS.Palette.statusWaiting)
.padding(.horizontal, DS.Space.sm8) .padding(.horizontal, DS.Space.sm8)
.padding(.vertical, DS.Space.xs2) .padding(.vertical, DS.Space.xs2)
.background(.quaternary, in: Capsule()) .background(DS.Palette.statusWaiting.opacity(0.18), in: Capsule())
} }
} }

View File

@@ -24,6 +24,10 @@ struct RootView: View {
// DS tint Tokens.swift // DS tint Tokens.swift
// gate amber orange `.tint` // gate amber orange `.tint`
.tint(DS.Palette.accent) .tint(DS.Palette.accent)
// web DEFAULT_SETTINGS.theme = 'dark'
// --bg #100F0D
// accent/status
.preferredColorScheme(.dark)
} }
} }