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 {
|
||||
FontFamily string
|
||||
FontSize string
|
||||
LineHeight string
|
||||
}
|
||||
|
||||
// Configuration.
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
"FontSize": "13px",
|
||||
"Editor": {
|
||||
"FontFamily": "Consolas, 'Courier New', monospace",
|
||||
"FontSize": "inherit"
|
||||
"FontSize": "13px",
|
||||
"LineHeight": "19px"
|
||||
},
|
||||
"LatestSessionContent": {
|
||||
"FileTree": [],
|
||||
|
|
|
@ -614,6 +614,7 @@ var editors = {
|
|||
theme: 'wide',
|
||||
indentUnit: 4,
|
||||
foldGutter: true,
|
||||
cursorHeight: 1,
|
||||
path: data.path,
|
||||
extraKeys: {
|
||||
"Ctrl-\\": "autocompleteAnyWord",
|
||||
|
|
|
@ -9,5 +9,6 @@ button {
|
|||
.CodeMirror,
|
||||
.CodeMirror-hints {
|
||||
font-family: Consolas, 'Courier New', monospace;
|
||||
font-size: inherit;
|
||||
font-size: 13px;
|
||||
line-height: 19px;
|
||||
}
|
|
@ -10,4 +10,5 @@ button {
|
|||
.CodeMirror-hints {
|
||||
font-family: {{.user.Editor.FontFamily}};
|
||||
font-size: {{.user.Editor.FontSize}};
|
||||
line-height: {{.user.Editor.LineHeight}};
|
||||
}
|
Loading…
Reference in New Issue