mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Add editor font size scroll zoom switch https://github.com/siyuan-note/siyuan/issues/8297
This commit is contained in:
parent
bb08d48d11
commit
337120511a
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ package conf
|
||||||
|
|
||||||
type Editor struct {
|
type Editor struct {
|
||||||
FontSize int `json:"fontSize"` // 字体大小
|
FontSize int `json:"fontSize"` // 字体大小
|
||||||
|
FontSizeScrollZoom bool `json:"fontSizeScrollZoom"` // 字体大小是否支持滚轮缩放
|
||||||
FontFamily string `json:"fontFamily"` // 字体
|
FontFamily string `json:"fontFamily"` // 字体
|
||||||
CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"` // 代码块是否显示行号
|
CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"` // 代码块是否显示行号
|
||||||
CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换
|
CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换
|
||||||
|
|
@ -51,6 +52,7 @@ type Editor struct {
|
||||||
func NewEditor() *Editor {
|
func NewEditor() *Editor {
|
||||||
return &Editor{
|
return &Editor{
|
||||||
FontSize: 16,
|
FontSize: 16,
|
||||||
|
FontSizeScrollZoom: false,
|
||||||
CodeSyntaxHighlightLineNum: true,
|
CodeSyntaxHighlightLineNum: true,
|
||||||
CodeTabSpaces: 0,
|
CodeTabSpaces: 0,
|
||||||
CodeLineWrap: false,
|
CodeLineWrap: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue