adjust line height, make it could customizable

This commit is contained in:
Liang Ding 2014-11-14 13:40:35 +08:00
parent c6f8ab342d
commit dda620a6d0
5 changed files with 10 additions and 5 deletions

View File

@ -65,6 +65,7 @@ type User struct {
type Editor struct {
FontFamily string
FontSize string
LineHeight string
}
// Configuration.

View File

@ -23,7 +23,8 @@
"FontSize": "13px",
"Editor": {
"FontFamily": "Consolas, 'Courier New', monospace",
"FontSize": "inherit"
"FontSize": "13px",
"LineHeight": "19px"
},
"LatestSessionContent": {
"FileTree": [],

View File

@ -614,6 +614,7 @@ var editors = {
theme: 'wide',
indentUnit: 4,
foldGutter: true,
cursorHeight: 1,
path: data.path,
extraKeys: {
"Ctrl-\\": "autocompleteAnyWord",

View File

@ -9,5 +9,6 @@ button {
.CodeMirror,
.CodeMirror-hints {
font-family: Consolas, 'Courier New', monospace;
font-size: inherit;
font-size: 13px;
line-height: 19px;
}

View File

@ -10,4 +10,5 @@ button {
.CodeMirror-hints {
font-family: {{.user.Editor.FontFamily}};
font-size: {{.user.Editor.FontSize}};
line-height: {{.user.Editor.LineHeight}};
}