From ffabf2453f652ab8b2d878b2ab40fc07906a2015 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 15 Nov 2023 21:24:38 +0100 Subject: [PATCH] drop some theme settings --- main.js | 22 ++++------------------ style.css | 2 ++ 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/main.js b/main.js index 27611f1..cf74e3f 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,5 @@ var defaultsettings = { - bgcolor: "white", - fontfamily: "system-ui", fontsize: "16px", fontcolor: "rgb(55, 53, 47)", lineheight: "24px", @@ -18,7 +16,6 @@ var defaultsettings = sync: false, tagsinlists: true, tagfilter: "", - darkcode: true, uselinkpopup: true }; @@ -674,7 +671,7 @@ function shownotelinks() { color: { - background: settings.bgcolor, + background: "white", border: settings.fontcolor, }, font: @@ -1317,8 +1314,6 @@ function loadstorage() function applystyle() { - document.body.style.background = settings.bgcolor; - document.body.style.fontFamily = settings.fontfamily; document.body.style.fontSize = settings.fontsize; document.body.style.lineHeight = settings.lineheight; document.body.style.color = settings.fontcolor; @@ -2162,19 +2157,13 @@ function rawline2html(line, index, options) { options.code = true; options.language = line.substring(3); - if (settings.darkcode) - { - line = "
" + line.replace(new RegExp("(" + options.language + ")"), "$1") + "
"; - } + line = "
" + line.replace(new RegExp("(" + options.language + ")"), "$1") + "
"; } else if (line == "```" && options.code) { options.code = false; options.language = ""; - if (settings.darkcode) - { - line = "
" + line + "
"; - } + line = "
" + line + "
"; } else if (options.code) { @@ -2184,10 +2173,7 @@ function rawline2html(line, index, options) line = "" + line + ""; comment = true; } - if (settings.darkcode) - { - line = "
" + (line || emptyline) + "
"; - } + line = "
" + (line || emptyline) + "
"; if (!comment && languagekeywords[options.language]) { var keywords = languagekeywords[options.language]; diff --git a/style.css b/style.css index bed803a..1e223e2 100644 --- a/style.css +++ b/style.css @@ -3,6 +3,8 @@ body { margin-left: 7%; margin-right: 7%; + background: white; + font-family: system-ui; } a {