diff --git a/derpiViewer/derpiViewer.html b/derpiViewer/derpiViewer.html index c3bdf38..29b41d1 100644 --- a/derpiViewer/derpiViewer.html +++ b/derpiViewer/derpiViewer.html @@ -2,13 +2,13 @@ + DerpiViewer @@ -165,6 +156,7 @@ img_loading: ["Image loading method: if lazy, images will load when you scroll near them. On eager they will load inmediately", [2, 'eager', 'lazy']], fix_scroll: ["Enable this if the page jumps when loading images", [2, 'yes', 'no']], max_width: ["Maximum width of the page (px)", 1000], + color_scheme: ["Color scheme", [1, 'dark', 'light']], } function initSettings() { @@ -238,6 +230,10 @@ // the max_width needs to sync instantaneously with the css property document.body.style.maxWidth = settings[s] + 'px' } + if(s=='color_scheme'){ + // the color scheme must update + document.getElementById("color-scheme").content = settings[s]; + } } ////////// image loading //////////