From 80cf6f447aa0772c36a9cce83d4a1f35bc72e973 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Mar 2024 10:46:02 +0530 Subject: [PATCH] Add a title bar to the profiles page --- src/pyj/read_book/profiles.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/profiles.pyj b/src/pyj/read_book/profiles.pyj index 1feffa5062..69c367b8ad 100644 --- a/src/pyj/read_book/profiles.pyj +++ b/src/pyj/read_book/profiles.pyj @@ -6,6 +6,7 @@ from elementmaker import E from book_list.globals import get_session_data from book_list.item_list import create_item, create_item_list, create_side_action +from book_list.top_bar import create_top_bar from dom import clear, unique_id from gettext import gettext as _ from modals import question_dialog @@ -90,6 +91,7 @@ def load_profiles(container_id): def create_profiles_panel(container, hide_panel, on_change): + create_top_bar(container, title=_('Profiles'), icon='close', action=hide_panel) c = E.div(style='margin: 1rem', id=unique_id('placeholder-prefs')) c.addEventListener('close_panel', def(): hide_panel();, False) c.addEventListener('settings_changed', def(): on_change();, False)