🎨 外观模式支持跟随系统切换 https://github.com/siyuan-note/siyuan/issues/5854
This commit is contained in:
parent
290cf3586c
commit
1c688288be
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue