diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index a4c51539..ac8e3397 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -99,32 +99,22 @@ export default { return `/api/items/${this.libraryItemId}/ebook` }, themeRules() { - const theme = this.ereaderSettings.theme - const isDark = theme === 'dark' - const isSepia = theme === 'sepia' - - const fontColor = isDark - ? '#fff' - : isSepia - ? '#5b4636' - : '#000' - - const backgroundColor = isDark - ? 'rgb(35 35 35)' - : isSepia - ? 'rgb(244, 236, 216)' - : 'rgb(255, 255, 255)' + const isDark = this.ereaderSettings.theme === 'dark' + const fontColor = isDark ? '#fff' : '#000' + const backgroundColor = isDark ? 'rgb(35 35 35)' : 'rgb(255, 255, 255)' const lineSpacing = this.ereaderSettings.lineSpacing / 100 - const fontScale = this.ereaderSettings.fontScale / 100 - const textStroke = this.ereaderSettings.textStroke / 100 + + const fontScale = this.ereaderSettings.fontScale / 100 + + const textStroke = this.ereaderSettings.textStroke / 100 return { '*': { color: `${fontColor}!important`, 'background-color': `${backgroundColor}!important`, - 'line-height': `${lineSpacing * fontScale}rem!important`, - '-webkit-text-stroke': `${textStroke}px ${fontColor}!important` + 'line-height': lineSpacing * fontScale + 'rem!important', + '-webkit-text-stroke': textStroke + 'px ' + fontColor + '!important' }, a: { color: `${fontColor}!important` diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 9063479d..a7a5ac3d 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -1,5 +1,5 @@