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:
@@ -259,11 +259,12 @@ struct ProjectDetailScreen: View {
|
||||
struct DirtyBadge: View {
|
||||
var body: some View {
|
||||
Text(ProjectsCopy.dirtyBadge)
|
||||
.font(DS.Typography.caption)
|
||||
.font(DS.Typography.caption.weight(.medium))
|
||||
// 软填充胶囊:amber 字 + amber 淡底(非浅灰底),明暗两态都清晰。
|
||||
.foregroundStyle(DS.Palette.statusWaiting)
|
||||
.padding(.horizontal, DS.Space.sm8)
|
||||
.padding(.vertical, DS.Space.xs2)
|
||||
.background(.quaternary, in: Capsule())
|
||||
.background(DS.Palette.statusWaiting.opacity(0.18), in: Capsule())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user