mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-08 18:45:51 +01:00
More work on the prefs panel
This commit is contained in:
parent
4224233eca
commit
95f62fcad2
1 changed files with 8 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
from gettext import gettext as _
|
||||
from dom import svgicon, ensure_id, clear
|
||||
from elementmaker import E
|
||||
from book_list.item_list import build_list, create_item
|
||||
|
||||
class Prefs:
|
||||
|
||||
|
|
@ -43,7 +44,13 @@ def show_panel(self, which):
|
|||
self.display_panel(which)
|
||||
|
||||
def display_top(self, container):
|
||||
pass
|
||||
c = E.div()
|
||||
container.appendChild(c)
|
||||
build_list(c, [
|
||||
create_item(_('Colors'), def():self.show_panel('colors');, _('Change the colors of the page and text')),
|
||||
create_item(_('Page Layout'), def():self.show_panel('layout');, _('Change the page margins and number of columns per page')),
|
||||
])
|
||||
|
||||
|
||||
def create_prefs_panel(container, close_func):
|
||||
Prefs(container, close_func)
|
||||
|
|
|
|||
Loading…
Reference in a new issue