diff --git a/components/readers/EpubReader.vue b/components/readers/EpubReader.vue
index 75176f8e..813b64e7 100644
--- a/components/readers/EpubReader.vue
+++ b/components/readers/EpubReader.vue
@@ -38,7 +38,8 @@ export default {
ereaderSettings: {
theme: 'dark',
fontScale: 100,
- lineSpacing: 115
+ lineSpacing: 115,
+ textStroke: 0
}
}
},
@@ -113,7 +114,8 @@ export default {
'*': {
color: `${fontColor}!important`,
'background-color': `${backgroundColor}!important`,
- 'line-height': this.ereaderSettings.lineSpacing + '%!important'
+ 'line-height': this.ereaderSettings.lineSpacing + '%!important',
+ '-webkit-text-stroke': this.ereaderSettings.textStroke/100 + 'px ' + fontColor + '!important'
},
a: {
color: `${fontColor}!important`
diff --git a/components/readers/Reader.vue b/components/readers/Reader.vue
index ddd2d7bf..7355bf3d 100644
--- a/components/readers/Reader.vue
+++ b/components/readers/Reader.vue
@@ -82,6 +82,12 @@
{{ $strings.LabelFontBoldness }}:
+{{ $strings.LabelLayout }}:
@@ -116,7 +122,8 @@ export default { theme: 'dark', fontScale: 100, lineSpacing: 115, - spread: 'auto' + spread: 'auto', + textStroke: 0 } } }, @@ -369,12 +376,12 @@ export default { try { const settings = localStorage.getItem('ereaderSettings') if (settings) { - const ereaderSettings = JSON.parse(settings) - if (!ereaderSettings.spread) { - // Added in 0.9.71 - ereaderSettings.spread = 'auto' + const _ereaderSettings = JSON.parse(settings) + for (const key in this.ereaderSettings) { + if (_ereaderSettings[key] !== undefined) { + this.ereaderSettings[key] = _ereaderSettings[key] + } } - this.ereaderSettings = ereaderSettings this.settingsUpdated() } } catch (error) { @@ -396,4 +403,4 @@ export default { this.unregisterListeners() } } - \ No newline at end of file + diff --git a/strings/en-us.json b/strings/en-us.json index 2f301acc..ac9d24f6 100644 --- a/strings/en-us.json +++ b/strings/en-us.json @@ -141,6 +141,7 @@ "LabelFilename": "Filename", "LabelFinished": "Finished", "LabelFolder": "Folder", + "LabelFontBoldness": "Font Boldness", "LabelFontScale": "Font scale", "LabelGenre": "Genre", "LabelGenres": "Genres",