mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 19:06:07 +00:00
Add OpenClaw design system foundations: - Custom typography tokens (OpenClawType) using Plus Jakarta Sans, DM Sans, and JetBrains Mono with Dynamic Type scaling - Spacing and radius token enums (OpenClawSpacing, OpenClawRadius) - Additive brand color tokens (accentPressed, teal, void, obsidian, slate, textPrimary, textSecondary) - Shared components: OpenClawToggleIndicator, OpenClawStatusBadge, OpenClawPrimaryButtonStyle, OpenClawSecondaryButtonStyle - Bundled font files with OFL license provenance Migrate all iOS views to OpenClawType tokens. No behavioral, navigation, or routing changes — this is purely visual/typographic. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
684 B
Swift
25 lines
684 B
Swift
import SwiftUI
|
|
|
|
struct VoiceWakeToast: View {
|
|
var command: String
|
|
|
|
var body: some View {
|
|
HStack(spacing: 10) {
|
|
Image(systemName: "mic.fill")
|
|
.font(OpenClawType.subheadSemiBold)
|
|
.foregroundStyle(.primary)
|
|
|
|
Text(self.command)
|
|
.font(OpenClawType.subheadSemiBold)
|
|
.foregroundStyle(.primary)
|
|
.lineLimit(1)
|
|
.truncationMode(.tail)
|
|
}
|
|
.padding(.vertical, 10)
|
|
.padding(.horizontal, 12)
|
|
.openClawGlassSurface()
|
|
.accessibilityLabel("Voice Wake triggered")
|
|
.accessibilityValue("Command: \(self.command)")
|
|
}
|
|
}
|