Skip to content

Add dark mode support with Settings appearance picker - #12

Draft
anamhira47 wants to merge 2 commits into
mainfrom
cursor/r-0ac20a4e5baf45a88e98263575a09786-e66b40b34b434fd48d32c60bf52d55f5-create-a-dark-mode-of-the-ap-623-4f57
Draft

Add dark mode support with Settings appearance picker#12
anamhira47 wants to merge 2 commits into
mainfrom
cursor/r-0ac20a4e5baf45a88e98263575a09786-e66b40b34b434fd48d32c60bf52d55f5-create-a-dark-mode-of-the-ap-623-4f57

Conversation

@anamhira47

Copy link
Copy Markdown

Summary

Adds full dark mode support to SweepAlert iOS by removing the hard-coded light appearance lock, introducing adaptive brand colors, and adding an in-app Appearance control on Settings (visible to signed-out users).

Changes

  • Removed .preferredColorScheme(.light) so the app can follow system or user preference
  • Added SweepColors theme tokens with asset-catalog adaptive colors:
    • SweepInk — primary text
    • SweepMuted — secondary text
    • SweepCardStroke — card borders (replaces hard-coded Color.white.opacity(0.58))
  • Added Settings Appearance segmented picker: System / Light / Dark (persisted via @AppStorage)
  • Updated widget text to use adaptive Color.primary / Color.secondary

Verification (Revyl remote build + device)

  • Remote build: success (cursor-r-0ac20a4e5baf45a88e98263575a09786-e66b40-20260628-053758)
  • Opened Settings (unauthenticated) via bottom gear → confirmed Appearance section with System/Light/Dark picker
  • Selected Dark → Settings switched to black background with light text; map chrome and bottom panel updated to dark styling

Before (light mode, Appearance picker visible)

Settings light mode before

After (dark mode selected in Settings)

Settings dark mode after

After (map screen in dark mode)

Map dark mode after

Device verification result: Appearance picker renders on Settings (unauthenticated). Selecting Dark immediately applies dark styling to Settings (black grouped background, white primary text, Dark segment selected) and the main map UI (dark bottom sign-in panel).

Open in Web Open in Cursor 

cursoragent and others added 2 commits June 28, 2026 05:09
Co-authored-by: Anam Hira <anam@revyl.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants