This commit is contained in:
Kovid Goyal 2021-12-15 11:48:19 +05:30
parent c1dc45a79f
commit 2c6a73534a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -585,21 +585,7 @@ class OpenBook: # {{{
pass # Dont allow panel to be closed by a click pass # Dont allow panel to be closed by a click
def show(self, container): def show(self, container):
container.style.backgroundColor = get_color('window-background') simple_overlay_title(_('Open a book'), self.overlay, container)
container.appendChild(E.div(
style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: flex-start',
E.div(
svgicon('close'), style=f'cursor:pointer',
onclick=def(event):
event.preventDefault(), event.stopPropagation()
if self.closeable:
self.overlay.hide_current_panel(event)
else:
ui_operations.quit()
,
class_='simple-link'),
E.h2(_('Open a book'), style='margin-left: 1rem'),
))
create_open_book(container, self.overlay.view?.book) create_open_book(container, self.overlay.view?.book)
# }}} # }}}