Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
d35d0bccfc
commit
23b9c90871
@ -27,21 +27,20 @@ struct RitualFocusCardView: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: Design.Spacing.medium) {
|
||||
HStack(spacing: Design.Spacing.medium) {
|
||||
HStack(spacing: Design.Spacing.small) {
|
||||
// Icon
|
||||
Image(systemName: iconName)
|
||||
.font(.title2)
|
||||
.foregroundStyle(AppAccent.primary)
|
||||
.accessibilityHidden(true)
|
||||
VStack(alignment: .leading, spacing: Design.Spacing.xxxSmall) {
|
||||
Text(title)
|
||||
.font(.title3)
|
||||
.foregroundStyle(AppTextColors.primary)
|
||||
.bold()
|
||||
Text(theme)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(AppTextColors.secondary)
|
||||
}
|
||||
|
||||
// Title
|
||||
Text(title)
|
||||
.font(.headline)
|
||||
.foregroundStyle(AppTextColors.primary)
|
||||
|
||||
Spacer(minLength: Design.Spacing.medium)
|
||||
|
||||
// Day label
|
||||
Text(dayLabel)
|
||||
.font(.caption)
|
||||
.foregroundStyle(AppTextColors.secondary)
|
||||
@ -52,6 +51,10 @@ struct RitualFocusCardView: View {
|
||||
.accessibilityLabel(Text(dayLabel))
|
||||
}
|
||||
|
||||
Text(theme)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(AppTextColors.secondary)
|
||||
|
||||
VStack(alignment: .leading, spacing: Design.Spacing.xSmall) {
|
||||
ProgressView(value: progress)
|
||||
.tint(AppAccent.primary)
|
||||
|
||||
@ -26,19 +26,19 @@ struct TodayHabitRowView: View {
|
||||
Button(action: action) {
|
||||
HStack(spacing: Design.Spacing.medium) {
|
||||
Image(systemName: symbolName)
|
||||
.font(.title3)
|
||||
.font(.body)
|
||||
.foregroundStyle(isCompleted ? AppStatus.success : AppAccent.primary)
|
||||
.frame(width: AppMetrics.Size.iconLarge)
|
||||
.accessibilityHidden(true)
|
||||
|
||||
Text(title)
|
||||
.font(.body)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(AppTextColors.primary)
|
||||
|
||||
Spacer(minLength: Design.Spacing.medium)
|
||||
|
||||
Image(systemName: isCompleted ? "checkmark.circle.fill" : "circle")
|
||||
.font(.title3)
|
||||
.font(.body)
|
||||
.foregroundStyle(isCompleted ? AppStatus.success : AppBorder.subtle)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user