added: font family in settings
This commit is contained in:
parent
8504adb3f0
commit
e1acbbcda6
2
main.js
2
main.js
|
@ -3,6 +3,7 @@ var defaultsettings =
|
||||||
fontsize: "16px",
|
fontsize: "16px",
|
||||||
lineheight: "24px",
|
lineheight: "24px",
|
||||||
margins: "20%",
|
margins: "20%",
|
||||||
|
fontfamily: "helvetica,system-ui",
|
||||||
savedelay: 2000,
|
savedelay: 2000,
|
||||||
defaultpreviewinsplit: false,
|
defaultpreviewinsplit: false,
|
||||||
tagautocomplete: false,
|
tagautocomplete: false,
|
||||||
|
@ -1319,6 +1320,7 @@ function loadsettings()
|
||||||
document.body.style.lineHeight = settings.lineheight;
|
document.body.style.lineHeight = settings.lineheight;
|
||||||
document.body.style.marginLeft = settings.margins;
|
document.body.style.marginLeft = settings.margins;
|
||||||
document.body.style.marginRight = settings.margins;
|
document.body.style.marginRight = settings.margins;
|
||||||
|
document.body.style.fontFamily = settings.fontfamily;
|
||||||
|
|
||||||
if (settings.titlebydefault && title.hidden)
|
if (settings.titlebydefault && title.hidden)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,6 @@ body {
|
||||||
margin-left: 7%;
|
margin-left: 7%;
|
||||||
margin-right: 7%;
|
margin-right: 7%;
|
||||||
background: white;
|
background: white;
|
||||||
font-family: helvetica, system-ui;
|
|
||||||
caret-color: var(--accent);
|
caret-color: var(--accent);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +22,6 @@ input {
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -70,7 +68,6 @@ body::-webkit-scrollbar-thumb {
|
||||||
|
|
||||||
resize: none;
|
resize: none;
|
||||||
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
|
|
Loading…
Reference in New Issue