feat: enforce custom Theme colors app-wide, add debug sample trips and poll
Replace all system colors (.secondary, Color(.secondarySystemBackground), etc.) with Theme.textPrimary/textSecondary/textMuted/cardBackground/ surfaceGlow across 13 views. Remove PostHog debug logging. Add debug settings for sample trips and hardcoded group poll preview. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,17 +34,21 @@ struct PollVotingView: View {
|
||||
onMoveDown: { viewModel.moveTripDown(at: index) }
|
||||
)
|
||||
.accessibilityHint("Drag to change ranking position, or use move up and move down buttons")
|
||||
.listRowBackground(Theme.cardBackground(colorScheme))
|
||||
.listRowSeparatorTint(Theme.surfaceGlow(colorScheme))
|
||||
}
|
||||
.onMove { source, destination in
|
||||
viewModel.moveTrip(from: source, to: destination)
|
||||
}
|
||||
}
|
||||
.listStyle(.plain)
|
||||
.scrollContentBackground(.hidden)
|
||||
.environment(\.editMode, .constant(.active))
|
||||
|
||||
// Submit button
|
||||
submitButton
|
||||
}
|
||||
.themedBackground()
|
||||
.navigationTitle("Rank Trips")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
@@ -88,10 +92,11 @@ struct PollVotingView: View {
|
||||
|
||||
Text("Drag to rank your preferences")
|
||||
.font(.headline)
|
||||
.foregroundStyle(Theme.textPrimary(colorScheme))
|
||||
|
||||
Text("Your top choice should be at the top. You can drag, or use the move buttons.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(Theme.textSecondary(colorScheme))
|
||||
}
|
||||
.padding()
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -130,6 +135,7 @@ struct PollVotingView: View {
|
||||
// MARK: - Ranking Row
|
||||
|
||||
private struct RankingRow: View {
|
||||
@Environment(\.colorScheme) private var colorScheme
|
||||
let rank: Int
|
||||
let trip: Trip
|
||||
let canMoveUp: Bool
|
||||
@@ -150,10 +156,11 @@ private struct RankingRow: View {
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(trip.displayName)
|
||||
.font(.headline)
|
||||
.foregroundStyle(Theme.textPrimary(colorScheme))
|
||||
|
||||
Text(tripSummary)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(Theme.textMuted(colorScheme))
|
||||
}
|
||||
|
||||
Spacer()
|
||||
@@ -175,7 +182,7 @@ private struct RankingRow: View {
|
||||
.disabled(!canMoveDown)
|
||||
.accessibilityLabel("Move \(trip.displayName) down")
|
||||
}
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(Theme.textSecondary(colorScheme))
|
||||
}
|
||||
.padding(.vertical, 4)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user