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

Add Theme Switch #28

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Conversation

chiaramooney
Copy link
Contributor

@chiaramooney chiaramooney commented Dec 21, 2020

This PR is code that was originally in the Add Settings Page PR that has now been separated out for a clearer flow.

Added Light Theme support for Code Snippets, tried to match coloring of syntax highlighting in XAML Controls Gallery. Added global state for theme. Using dropdown in Settings, users can select which theme they want shown for code snippets.

Tried to add Theme toggle for entire app but DefaultTheme and DarkTheme from @react-navigation/native seem to only change background color and will NOT change text coloring or coloring of the app window. Only way to view dark or light theme for the app correctly is when the user's Windows system has selected for apps to display in dark or light theme.

Example of Light Theme Code Snippet
image

Example of Dark Theme Code Snippet
image

Copy link
Contributor

@kmelmon kmelmon left a comment

Choose a reason for hiding this comment

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

:shipit:

@chiaramooney chiaramooney merged commit 56f96d3 into microsoft:main Dec 21, 2020
@chiaramooney chiaramooney deleted the add-theme-switch branch December 21, 2020 20:34
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

2 participants