Skip to content

外观模式支持跟随系统切换 #5854

Closed
@88250

Description

@88250
Member

https://ld246.com/article/1662710907148

移除主界面顶栏上的切换按钮。

Activity

changed the title [-]外观默认跟随系统切换[/-] [+]外观模式跟随系统切换[/+] on Sep 9, 2022
Zuoqiu-Yingyi

Zuoqiu-Yingyi commented on Sep 10, 2022

@Zuoqiu-Yingyi
Contributor

解决方案: 可以参考 nativeTheme | Electron

const { nativeTheme } = require('electron');
nativeTheme.themeSource = 'system';
nativeTheme.shouldUseDarkColors; // 通过该 boolean 属性可以判断当前操作系统是否启用的暗色 UI
added this to the 2.2.2 milestone on Sep 25, 2022
changed the title [-]外观模式跟随系统切换[/-] [+]外观模式支持跟随系统切换[/+] on Sep 25, 2022
added a commit that references this issue on Sep 25, 2022
added a commit that references this issue on Sep 25, 2022

5 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@aptexd@Zuoqiu-Yingyi

      Issue actions

        外观模式支持跟随系统切换 · Issue #5854 · siyuan-note/siyuan