From a0d061ef4218a11b811d9f05dca74dd6afc70fcb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 23 Mar 2020 14:45:30 +0530 Subject: [PATCH] Persist last used highlight style --- src/pyj/read_book/create_annotation.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/create_annotation.pyj b/src/pyj/read_book/create_annotation.pyj index 3772017273..d2cc0af6a4 100644 --- a/src/pyj/read_book/create_annotation.pyj +++ b/src/pyj/read_book/create_annotation.pyj @@ -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()