Работа над ночным режимом

This commit is contained in:
Book Pauk
2023-01-10 20:56:27 +07:00
parent 31481453f5
commit c0aec66f0f
2 changed files with 39 additions and 20 deletions

View File

@@ -142,7 +142,7 @@
</div>
</div>
<div class="col row relative-position main" :class="{dark}">
<div class="col row relative-position main">
<keep-alive>
<component
:is="activePage"
@@ -473,6 +473,7 @@ class Reader {
//dark mode
this.nightModeActive = settings.nightMode;
this.$root.setDarkMode(this.nightModeActive);
this.$q.dark.set(this.nightModeActive);
this.clickControlActive = settings.clickControl;
@@ -832,10 +833,6 @@ class Reader {
return this.$store.state.reader.settings;
}
get dark() {
return this.$store.state.reader.settings.nightMode;
}
addAction(pos) {
let a = this.actionList;
if (!a.length || a[a.length - 1] != pos) {
@@ -1700,13 +1697,8 @@ export default vueComponent(Reader);
}
.main {
background-color: #EBE2C9;
color: #000;
}
.dark {
background-color: #222;
color: #ddd;
background-color: var(--app-bg-color);
color: var(--app-text-color);
}
.tool-button {