added: font family in settings

This commit is contained in:
quenousimporte 2024-01-09 11:09:57 +01:00
parent 8504adb3f0
commit e1acbbcda6
2 changed files with 2 additions and 3 deletions

View File

@ -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)
{ {

View File

@ -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;