From 337120511a7a1ca6eab195eaa0b6770ffaaf0b97 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 27 May 2023 22:21:05 +0800 Subject: [PATCH] :art: Add editor font size scroll zoom switch https://github.com/siyuan-note/siyuan/issues/8297 --- kernel/conf/editor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go index 32bba1df2..6b2819aba 100644 --- a/kernel/conf/editor.go +++ b/kernel/conf/editor.go @@ -18,6 +18,7 @@ package conf type Editor struct { FontSize int `json:"fontSize"` // 字体大小 + FontSizeScrollZoom bool `json:"fontSizeScrollZoom"` // 字体大小是否支持滚轮缩放 FontFamily string `json:"fontFamily"` // 字体 CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"` // 代码块是否显示行号 CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换 @@ -51,6 +52,7 @@ type Editor struct { func NewEditor() *Editor { return &Editor{ FontSize: 16, + FontSizeScrollZoom: false, CodeSyntaxHighlightLineNum: true, CodeTabSpaces: 0, CodeLineWrap: false,