Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 外观模式支持跟随系统切换 https://github.com/siyuan-note/siyuan/issues/5854

Liang Ding1c688288be69
diff --git a/kernel/conf/appearance.go b/kernel/conf/appearance.go
index 275266ae5f..50b99d2b47 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",