From e1acbbcda62c47df5c5ffbf141a475c9a29fbe67 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 9 Jan 2024 11:09:57 +0100 Subject: [PATCH] added: font family in settings --- main.js | 2 ++ style.css | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 0b10886..fe6ca65 100644 --- a/main.js +++ b/main.js @@ -3,6 +3,7 @@ var defaultsettings = fontsize: "16px", lineheight: "24px", margins: "20%", + fontfamily: "helvetica,system-ui", savedelay: 2000, defaultpreviewinsplit: false, tagautocomplete: false, @@ -1319,6 +1320,7 @@ function loadsettings() document.body.style.lineHeight = settings.lineheight; document.body.style.marginLeft = settings.margins; document.body.style.marginRight = settings.margins; + document.body.style.fontFamily = settings.fontfamily; if (settings.titlebydefault && title.hidden) { diff --git a/style.css b/style.css index 52f5651..fb902a2 100644 --- a/style.css +++ b/style.css @@ -10,7 +10,6 @@ body { margin-left: 7%; margin-right: 7%; background: white; - font-family: helvetica, system-ui; caret-color: var(--accent); color: var(--black); } @@ -23,7 +22,6 @@ input { outline: none; border: none; - font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; @@ -70,7 +68,6 @@ body::-webkit-scrollbar-thumb { resize: none; - font-family: inherit; font-size: inherit; line-height: inherit; background-color: inherit;