Files
Reflect/Shared/Views/CustomizeView/CustomizeView.swift
Trey t f7ac2085b8 Redesign Day view with switchable voting layouts and modern styling
- Add 4 voting layout styles: horizontal, cards, radial, stacked
- Add color-filled backgrounds to mood entries (tinted by mood color)
- Add sticky month headers with blur material effect
- Add voting layout picker to Customize tab
- Add haptic feedback on mood selection
- Improve typography and spacing throughout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 23:44:28 -06:00

78 lines
2.0 KiB
Swift

//
// CustomizeView.swift
// Feels (iOS)
//
// Created by Trey Tartt on 2/19/22.
//
import SwiftUI
struct CustomizeView: View {
@State private var showSettings = false
@AppStorage(UserDefaultsStore.Keys.theme.rawValue, store: GroupUserDefaults.groupDefaults) private var theme: Theme = .system
var body: some View {
ScrollView {
settingsButtonView
VStack {
Group {
CustomWigetView()
IconPickerView()
ThemePickerView()
Divider()
VotingLayoutPickerView()
Divider()
SampleEntryView()
ImagePackPickerView()
}
Group {
TintPickerView()
TextColorPickerView()
}
Divider()
DayFilterPickerView()
Divider()
ShapePickerView()
Divider()
PersonalityPackPickerView()
}
}
.onAppear(perform: {
EventLogger.log(event: "show_customize_view")
})
.sheet(isPresented: $showSettings) {
SettingsView()
}
.padding()
.background(
theme.currentTheme.bg
.edgesIgnoringSafeArea(.all)
)
}
private var settingsButtonView: some View {
HStack {
Spacer()
Button(action: {
showSettings.toggle()
}, label: {
Image(systemName: "gear")
.foregroundColor(Color(UIColor.darkGray))
.font(.system(size: 20))
}).padding(.trailing)
}
}
}
struct CustomizeView_Previews: PreviewProvider {
static var previews: some View {
Group {
CustomizeView()
CustomizeView()
.preferredColorScheme(.dark)
}
}
}