Use correct color for legacy annots

This commit is contained in:
Kovid Goyal 2020-08-05 23:33:35 +05:30
parent 93cb98185f
commit ff063d0783
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -154,6 +154,8 @@ def highlight_style_as_css(s, is_dark, foreground):
bg = builtin_color(s.which, is_dark)
elif s.type is 'custom':
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('color', fg or s.color or foreground)