From 1c688288be69fd166f53876febd79c7e51c481b4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 25 Sep 2022 20:18:37 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=A4=96=E8=A7=82=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B7=9F=E9=9A=8F=E7=B3=BB=E7=BB=9F=E5=88=87?= =?UTF-8?q?=E6=8D=A2=20https://github.com/siyuan-note/siyuan/issues/5854?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/conf/appearance.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/conf/appearance.go b/kernel/conf/appearance.go index 275266ae5..50b99d2b4 100644 --- a/kernel/conf/appearance.go +++ b/kernel/conf/appearance.go @@ -17,7 +17,8 @@ package conf type Appearance struct { - Mode int `json:"mode"` // 模式:0:明亮,1:暗黑,2:跟随系统 + Mode int `json:"mode"` // 模式:0:明亮,1:暗黑 + ModeOS bool `json:"modeOS"` // 模式是否跟随系统 DarkThemes []string `json:"darkThemes"` // 暗黑模式外观主题列表 LightThemes []string `json:"lightThemes"` // 明亮模式外观主题列表 ThemeDark string `json:"themeDark"` // 选择的暗黑模式外观主题 @@ -39,6 +40,7 @@ type Appearance struct { func NewAppearance() *Appearance { return &Appearance{ Mode: 0, + ModeOS: false, ThemeDark: "midnight", ThemeLight: "daylight", Icon: "material",