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

By default, it should adapt to the system's colorScheme setting #11

Closed
dkk opened this issue Feb 8, 2021 · 0 comments
Closed

By default, it should adapt to the system's colorScheme setting #11

dkk opened this issue Feb 8, 2021 · 0 comments

Comments

@dkk
Copy link
Contributor

dkk commented Feb 8, 2021

Right now, .lightis used as the default colorScheme. Instead, the colorScheme should be taken from the system's colorScheme setting. Otherwise, when using the library, you have to make sure that Neumorphic's colorScheme updates with the system's colorScheme manually.

@Environment(\.colorScheme) can be used for that.

@dkk dkk changed the title By default, it should addapt to the system's colorScheme setting By default, it should adapt to the system's colorScheme setting Feb 8, 2021
dkk added a commit to dkk/neumorphic that referenced this issue Feb 8, 2021
Resolves costachung#11: Take the colorScheme from the system automatically
costachung added a commit that referenced this issue Feb 9, 2021
Resolves #11: Take the colorScheme from the system automatically
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

No branches or pull requests

1 participant