From cfd479f8188891d205752e2eda628ea7aa436ca4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 26 Jul 2026 09:31:25 +0000 Subject: [PATCH] Change app background to red Co-authored-by: Kyle Rich --- BugBazaar/BugBazaarApp.swift | 4 ++-- BugBazaar/Components/HeaderView.swift | 2 +- BugBazaar/Screens/AccountView.swift | 2 +- BugBazaar/Screens/CartView.swift | 4 ++-- BugBazaar/Screens/CheckoutView.swift | 4 ++-- BugBazaar/Screens/ConfirmationView.swift | 2 +- BugBazaar/Screens/OrderDetailView.swift | 2 +- BugBazaar/Screens/ProductDetailView.swift | 4 ++-- BugBazaar/Screens/SearchView.swift | 2 +- BugBazaar/Screens/ShopView.swift | 2 +- BugBazaar/Screens/SpecimensView.swift | 2 +- BugBazaar/Theme.swift | 1 + 12 files changed, 16 insertions(+), 15 deletions(-) diff --git a/BugBazaar/BugBazaarApp.swift b/BugBazaar/BugBazaarApp.swift index 37dd831..ba96fa9 100644 --- a/BugBazaar/BugBazaarApp.swift +++ b/BugBazaar/BugBazaarApp.swift @@ -83,7 +83,7 @@ struct MainTabsView: View { TabBarView(selected: $router.tab) } - .background(Theme.paperWhite) + .background(Theme.appBackground) } } @@ -114,7 +114,7 @@ struct TabBarView: View { .padding(.top, 8) .padding(.horizontal, 8) .padding(.bottom, 20) - .background(Theme.paperWhite) + .background(Theme.appBackground) .overlay(alignment: .top) { Rectangle().fill(Color.black.opacity(0.1)).frame(height: 1) } diff --git a/BugBazaar/Components/HeaderView.swift b/BugBazaar/Components/HeaderView.swift index 1a3284a..3d06ca0 100644 --- a/BugBazaar/Components/HeaderView.swift +++ b/BugBazaar/Components/HeaderView.swift @@ -39,7 +39,7 @@ struct HeaderView: View { } .padding(.horizontal, Spacing.m) .padding(.vertical, Spacing.m) - .background(Theme.paperWhite.opacity(0.95)) + .background(Theme.appBackground.opacity(0.95)) .overlay(alignment: .bottom) { Rectangle().fill(Theme.hairline).frame(height: 1) } diff --git a/BugBazaar/Screens/AccountView.swift b/BugBazaar/Screens/AccountView.swift index 7ebee57..45ada87 100644 --- a/BugBazaar/Screens/AccountView.swift +++ b/BugBazaar/Screens/AccountView.swift @@ -62,7 +62,7 @@ struct AccountView: View { .padding(.bottom, Spacing.xl + 20) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) .alert(demoAlert ?? "", isPresented: Binding( get: { demoAlert != nil }, set: { if !$0 { demoAlert = nil } } diff --git a/BugBazaar/Screens/CartView.swift b/BugBazaar/Screens/CartView.swift index 934ee1f..91ab17b 100644 --- a/BugBazaar/Screens/CartView.swift +++ b/BugBazaar/Screens/CartView.swift @@ -32,7 +32,7 @@ struct CartView: View { filledState } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } private var emptyState: some View { @@ -93,7 +93,7 @@ struct CartView: View { .accessibilityIdentifier("checkout-button") } .padding(Spacing.m) - .background(Theme.paperWhite) + .background(Theme.appBackground) .overlay(alignment: .top) { Rectangle().fill(Theme.hairline).frame(height: 1) } diff --git a/BugBazaar/Screens/CheckoutView.swift b/BugBazaar/Screens/CheckoutView.swift index 701fa12..d83348e 100644 --- a/BugBazaar/Screens/CheckoutView.swift +++ b/BugBazaar/Screens/CheckoutView.swift @@ -77,7 +77,7 @@ struct CheckoutView: View { footer } - .background(Theme.paperWhite) + .background(Theme.appBackground) } // MARK: Steps @@ -223,7 +223,7 @@ struct CheckoutView: View { .accessibilityIdentifier("checkout-footer-button") } .padding(Spacing.m) - .background(Theme.paperWhite) + .background(Theme.appBackground) .overlay(alignment: .top) { Rectangle().fill(Theme.hairline).frame(height: 1) } diff --git a/BugBazaar/Screens/ConfirmationView.swift b/BugBazaar/Screens/ConfirmationView.swift index 6a43efe..fdfd442 100644 --- a/BugBazaar/Screens/ConfirmationView.swift +++ b/BugBazaar/Screens/ConfirmationView.swift @@ -83,7 +83,7 @@ struct ConfirmationView: View { } .padding(Spacing.m) } - .background(Theme.paperWhite) + .background(Theme.appBackground) .navigationBarBackButtonHidden(true) .onAppear { withAnimation(.spring(response: 0.45, dampingFraction: 0.6)) { diff --git a/BugBazaar/Screens/OrderDetailView.swift b/BugBazaar/Screens/OrderDetailView.swift index d382741..d89de2b 100644 --- a/BugBazaar/Screens/OrderDetailView.swift +++ b/BugBazaar/Screens/OrderDetailView.swift @@ -38,7 +38,7 @@ struct OrderDetailView: View { .frame(maxWidth: .infinity, maxHeight: .infinity) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } private func statusColor(_ status: OrderStatus) -> Color { diff --git a/BugBazaar/Screens/ProductDetailView.swift b/BugBazaar/Screens/ProductDetailView.swift index eea5876..99ac362 100644 --- a/BugBazaar/Screens/ProductDetailView.swift +++ b/BugBazaar/Screens/ProductDetailView.swift @@ -36,7 +36,7 @@ struct ProductDetailView: View { .frame(maxWidth: .infinity, maxHeight: .infinity) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } private func detail(_ product: Product) -> some View { @@ -153,7 +153,7 @@ struct ProductDetailView: View { .accessibilityIdentifier("add-to-cart") } .padding(Spacing.m) - .background(Theme.paperWhite) + .background(Theme.appBackground) .overlay(alignment: .top) { Rectangle().fill(Theme.hairline).frame(height: 1) } diff --git a/BugBazaar/Screens/SearchView.swift b/BugBazaar/Screens/SearchView.swift index fdc580f..f189263 100644 --- a/BugBazaar/Screens/SearchView.swift +++ b/BugBazaar/Screens/SearchView.swift @@ -64,7 +64,7 @@ struct SearchView: View { .padding(.bottom, Spacing.xl) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } private var emptyState: some View { diff --git a/BugBazaar/Screens/ShopView.swift b/BugBazaar/Screens/ShopView.swift index 30ea882..cdb012c 100644 --- a/BugBazaar/Screens/ShopView.swift +++ b/BugBazaar/Screens/ShopView.swift @@ -21,6 +21,6 @@ struct ShopView: View { .padding(.bottom, Spacing.xl) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } } diff --git a/BugBazaar/Screens/SpecimensView.swift b/BugBazaar/Screens/SpecimensView.swift index 8eaeef8..219d765 100644 --- a/BugBazaar/Screens/SpecimensView.swift +++ b/BugBazaar/Screens/SpecimensView.swift @@ -38,7 +38,7 @@ struct SpecimensView: View { .padding(.bottom, Spacing.xl) } } - .background(Theme.paperWhite) + .background(Theme.appBackground) } private var statsRow: some View { diff --git a/BugBazaar/Theme.swift b/BugBazaar/Theme.swift index fb57d13..8c297ed 100644 --- a/BugBazaar/Theme.swift +++ b/BugBazaar/Theme.swift @@ -17,6 +17,7 @@ enum Theme { static let mangoOrange = Color(hex: 0x008000) static let mangoYellow = Color(hex: 0xFFD500) static let inkBlack = Color(hex: 0x080808) + static let appBackground = Color(hex: 0xFF0000) static let paperWhite = Color(hex: 0xFCFCFC) static let gray = Color(hex: 0x999999) static let lightGray = Color(hex: 0xF0F0F0)