mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Viewer: Override border colors as well when overriding book colors
This commit is contained in:
parent
971df45055
commit
d768e69e2a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user