Ensure handle colors are set properly

This commit is contained in:
Kovid Goyal 2020-07-22 22:40:06 +05:30
parent 3a5d99051c
commit 74cb446c60
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -343,6 +343,8 @@ class CreateAnnotation:
sd = get_session_data()
style = sd.get('highlight_style') or default_highlight_style()
if not style['background-color'] or not style['color']:
style = default_highlight_style()
self.current_highlight_style = style
lh = selection_handle(False, style)
@ -613,6 +615,7 @@ class CreateAnnotation:
c = self.container
c.style.display = 'flex'
c.focus()
self.update_handle_colors()
self.view.selection_bar.hide()
def hide(self):