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

暗色模式跟随系统设置 #1842

Open
Tracked by #1862
FranGuam opened this issue May 25, 2024 · 0 comments
Open
Tracked by #1862

暗色模式跟随系统设置 #1842

FranGuam opened this issue May 25, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@FranGuam
Copy link
Contributor

FranGuam commented May 25, 2024

#留给下一届系列

如题,现在的暗色模式是由localStorage保存的,可以考虑跟随系统暗色设置

方法参考:使用 React hooks 监听系统的暗黑模式,可在/src/api/hooks/中添加接口或直接在/src/app/index.tsx中修改

@FranGuam FranGuam added enhancement New feature or request help wanted Extra attention is needed labels May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant