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

This commit is contained in:
Book Pauk
2023-01-10 19:53:58 +07:00
parent 9724ec230c
commit 31481453f5
2 changed files with 15 additions and 4 deletions

View File

@@ -8,9 +8,11 @@
</span>
</template>
<q-input v-model="bookTitle" class="q-px-sm" dense borderless placeholder="Введите название текста" />
<hr />
<textarea ref="textArea" class="text" @paste="calcTitle"></textarea>
<div class="fit column" :class="{dark}">
<q-input v-model="bookTitle" class="q-px-sm" dense borderless placeholder="Введите название текста" />
<hr />
<textarea ref="textArea" class="text" :class="{dark}" @paste="calcTitle"></textarea>
</div>
</Window>
</template>
@@ -39,6 +41,10 @@ class PasteTextPage {
this.$refs.textArea.focus();
}
get dark() {
return this.$store.state.reader.settings.nightMode;
}
getNonEmptyLine3words(text, count) {
let result = '';
const lines = text.split("\n");
@@ -115,6 +121,11 @@ export default vueComponent(PasteTextPage);
outline: none;
}
.dark {
color: white;
background-color: #333;
}
hr {
margin: 0;
padding: 0;