Apply consistent branding colors (BlueGreen, Cerulean, BrightAmber, PrimaryScarlet, cream backgrounds) to all screens, components, buttons, icons, and text throughout the app. Update all Form/List views with proper list row backgrounds to ensure visual consistency with card-based layouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
758 B
Swift
33 lines
758 B
Swift
import SwiftUI
|
|
|
|
struct TaskPill: View {
|
|
let count: Int32
|
|
let label: String
|
|
let color: Color
|
|
|
|
var body: some View {
|
|
HStack(spacing: 4) {
|
|
Text("\(count)")
|
|
.font(.caption)
|
|
.fontWeight(.bold)
|
|
|
|
Text(label)
|
|
.font(.caption2)
|
|
}
|
|
.padding(.horizontal, 8)
|
|
.padding(.vertical, 4)
|
|
.background(color.opacity(0.2))
|
|
.foregroundColor(color)
|
|
.cornerRadius(8)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
HStack(spacing: 8) {
|
|
TaskPill(count: 12, label: "Total", color: Color.appPrimary)
|
|
TaskPill(count: 5, label: "Pending", color: Color.appAccent)
|
|
TaskPill(count: 3, label: "Done", color: Color.appPrimary)
|
|
}
|
|
.padding()
|
|
}
|