polish iOS study flow

This commit is contained in:
2026-04-09 15:51:03 +02:00
parent 5c0aa9542a
commit 0cfd847d62
16 changed files with 508 additions and 94 deletions
+3 -2
View File
@@ -115,6 +115,7 @@ struct HermesMetricPill: View {
struct HermesCountdownBadge: View {
let label: String
let value: String
var warning: Bool = false
var body: some View {
VStack(alignment: .leading, spacing: 4) {
@@ -123,11 +124,11 @@ struct HermesCountdownBadge: View {
.foregroundStyle(HermesTheme.textTertiary)
Text(value)
.font(.title3.weight(.bold))
.foregroundStyle(HermesTheme.accent)
.foregroundStyle(warning ? HermesTheme.warning : HermesTheme.accent)
}
.padding(.horizontal, 14)
.padding(.vertical, 12)
.background(HermesTheme.accentSoft)
.background((warning ? HermesTheme.warning : HermesTheme.accent).opacity(0.16))
.clipShape(RoundedRectangle(cornerRadius: HermesTheme.insetRadius, style: .continuous))
}
}