mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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'
|
text = 'body'
|
||||||
if opts.override_book_colors is 'dark':
|
if opts.override_book_colors is 'dark':
|
||||||
text += '.calibre-viewer-dark-colors'
|
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:
|
if opts.color_scheme.link:
|
||||||
c = opts.color_scheme.link
|
c = opts.color_scheme.link
|
||||||
# we use the html > body form so that these selectors have higher
|
# we use the html > body form so that these selectors have higher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user