From d768e69e2ad1cc3428c218c116ed6c0c658852cf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Dec 2019 11:02:03 +0530 Subject: [PATCH] Viewer: Override border colors as well when overriding book colors --- src/pyj/read_book/settings.pyj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/settings.pyj b/src/pyj/read_book/settings.pyj index c3a1905153..f2de15cde1 100644 --- a/src/pyj/read_book/settings.pyj +++ b/src/pyj/read_book/settings.pyj @@ -51,7 +51,12 @@ def apply_colors(): text = 'body' if opts.override_book_colors is 'dark': text += '.calibre-viewer-dark-colors' - text += f' * {{ color: {opts.color_scheme.foreground} !important; background-color: {opts.color_scheme.background} !important }}' + text += f''' + * {{ + color: {opts.color_scheme.foreground} !important; /**/ + background-color: {opts.color_scheme.background} !important; /**/ + border-color: {opts.color_scheme.foreground} !important; /**/ + }}''' if opts.color_scheme.link: c = opts.color_scheme.link # we use the html > body form so that these selectors have higher