mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Persist last used highlight style
This commit is contained in:
parent
f41906c4b3
commit
a0d061ef42
@ -219,6 +219,8 @@ class CreateAnnotation:
|
|||||||
fg = light_fg if is_dark else dark_fg
|
fg = light_fg if is_dark else dark_fg
|
||||||
self.current_highlight_style = {'background-color': new_color, 'color': fg}
|
self.current_highlight_style = {'background-color': new_color, 'color': fg}
|
||||||
self.send_message('set-highlight-style', style=self.current_highlight_style)
|
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):
|
def show_middle(self):
|
||||||
self.save_handle_state()
|
self.save_handle_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user