|
@@ -8,9 +8,11 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</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>
|
|
</Window>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -39,6 +41,10 @@ class PasteTextPage {
|
|
this.$refs.textArea.focus();
|
|
this.$refs.textArea.focus();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ get dark() {
|
|
|
|
+ return this.$store.state.reader.settings.nightMode;
|
|
|
|
+ }
|
|
|
|
+
|
|
getNonEmptyLine3words(text, count) {
|
|
getNonEmptyLine3words(text, count) {
|
|
let result = '';
|
|
let result = '';
|
|
const lines = text.split("\n");
|
|
const lines = text.split("\n");
|
|
@@ -115,6 +121,11 @@ export default vueComponent(PasteTextPage);
|
|
outline: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.dark {
|
|
|
|
+ color: white;
|
|
|
|
+ background-color: #333;
|
|
|
|
+}
|
|
|
|
+
|
|
hr {
|
|
hr {
|
|
margin: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding: 0;
|