Add dark mode with Settings appearance picker - #18
Draft
anamhira47 wants to merge 2 commits into
Draft
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full dark mode support to SweepAlert with a user-controlled appearance preference in Settings.
Changes
UIUserInterfaceStyle: LightfromInfo.plistand removed.preferredColorScheme(.light)from the app entry point.SweepTheme.swiftwith adaptive color tokens (ink,muted) using system label colors, plus dark-mode-aware card stroke/shadow helpers.AppearancePreference.swiftenum (System,Light,Dark) persisted via@AppStorage.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
cursor-r-dc81182a4660-add-dark-mode-atlas-contex-20260701-204810)To show artifacts inline, enable in settings.