Fixed scrollbars in a dark theme to be accessible

This commit is contained in:
Aleh Khantsevich
2024-05-02 20:38:00 +02:00
parent 9982ba2fec
commit d96df469a4
6 changed files with 31 additions and 21 deletions

View File

@@ -19,12 +19,19 @@
containerDiv.style.fontSize = size;
}
function ChangePrefferedTheme(theme) {
document.documentElement.setAttribute('data-theme', theme);
function SetLightEditor() {
document.documentElement.setAttribute('data-theme', 'light');
DarkReader.disable();
}
function SetDarkEditor() {
document.documentElement.setAttribute('data-theme', 'dark');
DarkReader.enable();
}
</script>
<link rel="stylesheet" href="https://app.reader/reader.css" />
<link rel="stylesheet" href="https://app.reader/global.css" />
<div id="readerDiv">
</div>