Persist last used highlight style

This commit is contained in:
Kovid Goyal 2020-03-23 14:45:30 +05:30
parent f41906c4b3
commit a0d061ef42
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -219,6 +219,8 @@ class CreateAnnotation:
fg = light_fg if is_dark else dark_fg
self.current_highlight_style = {'background-color': new_color, 'color': fg}
self.send_message('set-highlight-style', style=self.current_highlight_style)
sd = get_session_data()
sd.set('highlight_style', self.current_highlight_style)
def show_middle(self):
self.save_handle_state()