Remove 3D DayViewStyle

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-20 01:30:34 -06:00
parent 15eea92b79
commit 75921732ea
4 changed files with 2 additions and 230 deletions

View File

@@ -159,8 +159,6 @@ extension DayView {
leatherSectionHeader(month: month, year: year)
case .glass:
glassSectionHeader(month: month, year: year)
case .threeD:
threeDSectionHeader(month: month, year: year)
case .motion:
motionSectionHeader(month: month, year: year)
case .micro:
@@ -752,79 +750,6 @@ extension DayView {
.frame(height: 64)
}
// MARK: - 3D Style Section Header
private func threeDSectionHeader(month: Int, year: Int) -> some View {
ZStack {
// Deep shadow layer
RoundedRectangle(cornerRadius: 16)
.fill(Color.black.opacity(0.2))
.offset(x: 5, y: 7)
// Mid shadow layer
RoundedRectangle(cornerRadius: 16)
.fill(Color.black.opacity(0.1))
.offset(x: 3, y: 4)
// Main card
HStack(spacing: 16) {
// 3D month number
ZStack {
Text(String(format: "%02d", month))
.font(.system(size: 32, weight: .black, design: .rounded))
.foregroundColor(Color.black.opacity(0.15))
.offset(x: 3, y: 3)
Text(String(format: "%02d", month))
.font(.system(size: 32, weight: .black, design: .rounded))
.foregroundColor(textColor)
}
VStack(alignment: .leading, spacing: 2) {
Text(Random.monthName(fromMonthInt: month))
.font(.system(size: 20, weight: .bold))
.foregroundColor(textColor)
.shadow(color: Color.black.opacity(0.1), radius: 0, x: 1, y: 1)
Text(String(year))
.font(.system(size: 14, weight: .semibold))
.foregroundColor(textColor.opacity(0.5))
}
Spacer()
// 3D cube icon
ZStack {
Image(systemName: "cube.fill")
.font(.system(size: 22))
.foregroundColor(Color.black.opacity(0.15))
.offset(x: 2, y: 2)
Image(systemName: "cube.fill")
.font(.system(size: 22))
.foregroundColor(textColor.opacity(0.4))
}
}
.padding(.horizontal, 20)
.padding(.vertical, 16)
.background(
RoundedRectangle(cornerRadius: 16)
.fill(colorScheme == .dark ? Color(.systemGray6) : .white)
)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(
LinearGradient(
colors: [Color.white.opacity(0.5), Color.clear, Color.black.opacity(0.1)],
startPoint: .topLeading,
endPoint: .bottomTrailing
),
lineWidth: 2
)
)
}
.frame(height: 72)
}
// MARK: - Motion Style Section Header
private func motionSectionHeader(month: Int, year: Int) -> some View {
ZStack {