adjust line height, make it could customizable
This commit is contained in:
parent
c6f8ab342d
commit
dda620a6d0
|
@ -65,6 +65,7 @@ type User struct {
|
||||||
type Editor struct {
|
type Editor struct {
|
||||||
FontFamily string
|
FontFamily string
|
||||||
FontSize string
|
FontSize string
|
||||||
|
LineHeight string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configuration.
|
// Configuration.
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
"FontSize": "13px",
|
"FontSize": "13px",
|
||||||
"Editor": {
|
"Editor": {
|
||||||
"FontFamily": "Consolas, 'Courier New', monospace",
|
"FontFamily": "Consolas, 'Courier New', monospace",
|
||||||
"FontSize": "inherit"
|
"FontSize": "13px",
|
||||||
|
"LineHeight": "19px"
|
||||||
},
|
},
|
||||||
"LatestSessionContent": {
|
"LatestSessionContent": {
|
||||||
"FileTree": [],
|
"FileTree": [],
|
||||||
|
|
|
@ -614,6 +614,7 @@ var editors = {
|
||||||
theme: 'wide',
|
theme: 'wide',
|
||||||
indentUnit: 4,
|
indentUnit: 4,
|
||||||
foldGutter: true,
|
foldGutter: true,
|
||||||
|
cursorHeight: 1,
|
||||||
path: data.path,
|
path: data.path,
|
||||||
extraKeys: {
|
extraKeys: {
|
||||||
"Ctrl-\\": "autocompleteAnyWord",
|
"Ctrl-\\": "autocompleteAnyWord",
|
||||||
|
|
|
@ -9,5 +9,6 @@ button {
|
||||||
.CodeMirror,
|
.CodeMirror,
|
||||||
.CodeMirror-hints {
|
.CodeMirror-hints {
|
||||||
font-family: Consolas, 'Courier New', monospace;
|
font-family: Consolas, 'Courier New', monospace;
|
||||||
font-size: inherit;
|
font-size: 13px;
|
||||||
|
line-height: 19px;
|
||||||
}
|
}
|
|
@ -10,4 +10,5 @@ button {
|
||||||
.CodeMirror-hints {
|
.CodeMirror-hints {
|
||||||
font-family: {{.user.Editor.FontFamily}};
|
font-family: {{.user.Editor.FontFamily}};
|
||||||
font-size: {{.user.Editor.FontSize}};
|
font-size: {{.user.Editor.FontSize}};
|
||||||
|
line-height: {{.user.Editor.LineHeight}};
|
||||||
}
|
}
|
Loading…
Reference in New Issue