mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use correct color for legacy annots
This commit is contained in:
parent
93cb98185f
commit
ff063d0783
@ -154,6 +154,8 @@ def highlight_style_as_css(s, is_dark, foreground):
|
|||||||
bg = builtin_color(s.which, is_dark)
|
bg = builtin_color(s.which, is_dark)
|
||||||
elif s.type is 'custom':
|
elif s.type is 'custom':
|
||||||
bg = s.dark if is_dark else s.light
|
bg = s.dark if is_dark else s.light
|
||||||
|
elif s.color:
|
||||||
|
fg = s.color
|
||||||
set('background-color', bg or s['background-color'] or default_color(is_dark))
|
set('background-color', bg or s['background-color'] or default_color(is_dark))
|
||||||
set('color', fg or s.color or foreground)
|
set('color', fg or s.color or foreground)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user