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
外观模式支持跟随系统切换 #5854
Comments
解决方案: 可以参考 nativeTheme | Electron const { nativeTheme } = require('electron');
nativeTheme.themeSource = 'system';
nativeTheme.shouldUseDarkColors; // 通过该 boolean 属性可以判断当前操作系统是否启用的暗色 UI |
还是不建议轻易移除常用功能的,最好向前兼容 |
@aptexd 放在主界面顶栏的话会有冲突,需要两个开关才能控制,所以只能移除了。考虑到跟随系统设置之后一般不会再切换为特定的模式,所以放到设置是比较合理的,其他带有该功能的软件基本也是这样设计的。 |
@Vanessa219 在移除主题模式切换功能时貌似也将 |
看看能不能在自定义 js 里面加一下吧。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ld246.com/article/1662710907148
移除主界面顶栏上的切换按钮。
The text was updated successfully, but these errors were encountered: