Viewer: Override border colors as well when overriding book colors

This commit is contained in:
Kovid Goyal 2019-12-30 11:02:03 +05:30
parent 971df45055
commit d768e69e2a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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