-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
服务端(后端)增加深色模式 #790
Comments
最好是增加个emoji图标,点击切换,状态存储在浏览器本地。 |
你好,新版已修复支持在配置文件中设置 可以在控制中心的设置: 感谢反馈! 另:环境变量 |
你好,v2.8.6 刚刚发布了,包含了这个更新,感谢反馈! |
已经测试2.8.6版本,之前提的问题有2个: 我之所以想要后端也能切换深色模式,是因为在夜间浏览已经适配深色模式的网页,访问Artalk后端网址,显示的网址突然变白,眼睛很不适应,想了下,访问Artalk后端次数很少,问题2没必要开发者耗费精力。 |
问题描述
前端可以通过增加
darkMode: 'auto',
来控制Artalk的深/浅变化,当前端Artalk是深色时,访问Artalk后端还是浅色的,我希望后端也能跟随浏览器变成深色。测试
在服务端添加变量
ATK_FRONTEND_DARKMODE = "'auto'"
重新部署后,这个变量未起作用,并且如果前端配置使用后端的参数配置,Artalk前端保持浅色,必须增加darkMode: 'auto',
后,才会在浏览器为深色模式下切换为深色。参考
https://artalk.js.org/guide/frontend/config.html#darkmode
The text was updated successfully, but these errors were encountered: