Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: System Color Scheme #5

Merged
merged 1 commit into from May 5, 2022

Conversation

tunds
Copy link

@tunds tunds commented May 5, 2022

Added system settings for light, dark, and system theme for the entire app, also did some refactoring on the setting screen to break out views shown in the list.
Simulator Screen Recording - iPhone 11 - 2022-05-05 at 15 49 18

@chFlorian
Copy link
Contributor

Good stuff!

@adamrushy adamrushy self-requested a review May 5, 2022 20:23
Copy link
Owner

@adamrushy adamrushy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor comments :]

Social Contributor.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
case .dark:
return "🌚 Dark"
case .system:
return "📱 System"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍


final class AppColorSchemeManager: ObservableObject {

@AppStorage("currentColorScheme") var colorScheme: Int = AppColorScheme.allCases.first!.rawValue // Force unwrap YOLO 🤪
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment 😂

@tunds tunds force-pushed the feature/color-scheme-support branch from aab4dbb to 6bcd8d2 Compare May 5, 2022 20:36
…e app, also did some refactoring on the setting screen to break out views shown in the list.
@tunds tunds force-pushed the feature/color-scheme-support branch from 6bcd8d2 to f9f74b0 Compare May 5, 2022 20:37
@tunds
Copy link
Author

tunds commented May 5, 2022

@adamrushy All those issues should be resolved now 👍🏾

Copy link
Owner

@adamrushy adamrushy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@adamrushy adamrushy merged commit a62e752 into adamrushy:main May 5, 2022
@tunds tunds deleted the feature/color-scheme-support branch May 5, 2022 20:46
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.

None yet

4 participants