Skip to content

Add dark mode with Settings appearance picker - #18

Draft
anamhira47 wants to merge 2 commits into
mainfrom
cursor/r-dc81182a4660-add-dark-mode-atlas-context-app-sweepale-938367-2d80
Draft

Add dark mode with Settings appearance picker#18
anamhira47 wants to merge 2 commits into
mainfrom
cursor/r-dc81182a4660-add-dark-mode-atlas-context-app-sweepale-938367-2d80

Conversation

@anamhira47

Copy link
Copy Markdown

Summary

Adds full dark mode support to SweepAlert with a user-controlled appearance preference in Settings.

Changes

  • Removed light-mode locks — Deleted UIUserInterfaceStyle: Light from Info.plist and removed .preferredColorScheme(.light) from the app entry point.
  • New theme layer — Added SweepTheme.swift with adaptive color tokens (ink, muted) using system label colors, plus dark-mode-aware card stroke/shadow helpers.
  • Appearance preference — Added AppearancePreference.swift enum (System, Light, Dark) persisted via @AppStorage.
  • Settings UI — Added an Appearance section to Settings with a segmented picker (System / Light / Dark), placed below Account.
  • Adaptive UI — Updated text colors, card chrome, and widget text to use system adaptive colors.

Verification

Device instruction result: ✅ Success — Settings shows the Appearance section with System/Light/Dark options; selecting Dark switches the Settings screen to a dark background with light text.

Before (light mode, pre-change build):

Before: light mode main screen

After (dark mode enabled via Settings):

After: dark mode Settings with Appearance picker

Build

  • Remote Revyl build: ✅ succeeded (cursor-r-dc81182a4660-add-dark-mode-atlas-contex-20260701-204810)

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 1, 2026 20:44
- Remove light-mode locks from Info.plist and app entry point
- Add AppearancePreference enum and SweepTheme adaptive color tokens
- Add Appearance section to Settings with System/Light/Dark segmented picker
- Update card strokes and shadows to adapt to color scheme
- Use system label colors for text in app and widget

Co-authored-by: Anam Hira <anam@revyl.ai>
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