Add dark mode support with Settings appearance picker - #12
Draft
anamhira47 wants to merge 2 commits into
Conversation
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 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
.preferredColorScheme(.light)so the app can follow system or user preferenceSweepColorstheme tokens with asset-catalog adaptive colors:SweepInk— primary textSweepMuted— secondary textSweepCardStroke— card borders (replaces hard-codedColor.white.opacity(0.58))@AppStorage)Color.primary/Color.secondaryVerification (Revyl remote build + device)
cursor-r-0ac20a4e5baf45a88e98263575a09786-e66b40-20260628-053758)Before (light mode, Appearance picker visible)
After (dark mode selected in Settings)
After (map screen in dark mode)
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).