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/10749#issuecomment-4348873683

Danield82036d6e97b
diff --git a/app/src/config/appearance.ts b/app/src/config/appearance.ts
index 1913cc888f..1b5f23c623 100644
--- a/app/src/config/appearance.ts
+++ b/app/src/config/appearance.ts
@@ -199,6 +199,7 @@ export const appearance = {
icons: window.siyuan.config.appearance.icons,
lang: (appearance.element.querySelector("#lang") as HTMLSelectElement).value,
closeButtonBehavior: (appearance.element.querySelector("#closeButtonBehavior") as HTMLInputElement).checked ? 1 : 0,
+ hideToolbar: window.siyuan.config.appearance.hideToolbar,
hideStatusBar: (appearance.element.querySelector("#hideStatusBar") as HTMLInputElement).checked,
statusBar: {
msgTaskDatabaseIndexCommitDisabled: window.siyuan.config.appearance.statusBar.msgTaskDatabaseIndexCommitDisabled,
diff --git a/kernel/conf/appearance.go b/kernel/conf/appearance.go
index e8e3366453..3c34670ced 100644
--- a/kernel/conf/appearance.go
+++ b/kernel/conf/appearance.go
@@ -34,6 +34,7 @@ type Appearance struct {
Lang string `json:"lang"` // 选择的界面语言,同 AppConf.Lang
ThemeJS bool `json:"themeJS"` // 是否启用了主题 JavaScript
CloseButtonBehavior int `json:"closeButtonBehavior"` // 关闭按钮行为,0:退出,1:最小化到托盘
+ HideToolbar bool `json:"hideToolbar"` // 是否隐藏顶栏工具栏
HideStatusBar bool `json:"hideStatusBar"` // 是否隐藏底部状态栏
StatusBar *util.StatusBar `json:"statusBar"` // 底部状态栏配置
}
@@ -49,6 +50,7 @@ func NewAppearance() *Appearance {
CodeBlockThemeDark: "base16/dracula",
Lang: "en_US",
CloseButtonBehavior: 0,
+ HideToolbar: true,
HideStatusBar: false,
StatusBar: &util.StatusBar{},
}