Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>

This commit is contained in:
Matt Bruce 2026-02-01 16:58:38 -06:00
parent 08fef9ffe3
commit 3f385ac0f8

View File

@ -94,10 +94,6 @@ struct PresetLibrarySheet: View {
VStack(alignment: .leading, spacing: Design.Spacing.xSmall) {
HStack {
Text(preset.title).styled(.heading, emphasis: .primary)
if isAdded {
SymbolIcon("checkmark.circle.fill", size: .badge, color: AppStatus.success)
}
}
Text(preset.theme).styled(.subheading, emphasis: .secondary)
@ -106,14 +102,17 @@ struct PresetLibrarySheet: View {
Spacer()
VStack(alignment: .trailing, spacing: Design.Spacing.xSmall) {
Text(String(localized: "\(preset.habits.count) habits")).styled(.caption, emphasis: .tertiary)
if isAdded {
SymbolIcon("checkmark.circle.fill", size: .badge, color: AppStatus.success)
}
}
}
// Habit preview and Time of Day
HStack(alignment: .center, spacing: Design.Spacing.small) {
// Habit icons
// Habit icons and count
HStack(spacing: Design.Spacing.small) {
HStack(spacing: Design.Spacing.xxxSmall) {
ForEach(preset.habits.prefix(4)) { habit in
SymbolIcon(habit.symbolName, size: .badge, color: AppTextColors.tertiary)
}
@ -123,6 +122,9 @@ struct PresetLibrarySheet: View {
}
}
Text(String(localized: "\(preset.habits.count) habits")).styled(.caption, emphasis: .tertiary)
}
Spacer()
// Time of Day pill