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

Fix: Prevent persistence of dark mode styles when switching to light … #106

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

epsilonxaos
Copy link

Resolved an issue where dark mode styles persisted when switching back to light mode.

Refactored the getStyles function to avoid mutating the original styles object by creating a shallow copy before applying dark mode styles.

Light mode:
image

Dark mode:
image

@epsilonxaos epsilonxaos force-pushed the fix/disabledDarkMode branch from 5352bc9 to 0f2d517 Compare October 2, 2024 21:17
@hxf31891 hxf31891 merged commit d2178ee into hxf31891:main Nov 8, 2024
0 of 2 checks passed
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.

2 participants