mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:12:20 +02:00
Cant customize left of controls footer so hide that control
This commit is contained in:
parent
9102e671e7
commit
a3ec38342d
1 changed files with 9 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
CONTAINER = unique_id('reader-hf-prefs')
|
||||
|
||||
|
||||
def create_item(region, label):
|
||||
def create_item(region, label, style):
|
||||
def sep():
|
||||
return E.option('\xa0', disabled=True)
|
||||
|
||||
|
|
@ -22,6 +22,7 @@ def opt(label, name, selected):
|
|||
return E.option(label, id=name, value=name, selected=bool(selected))
|
||||
|
||||
return E.tr(
|
||||
style = style or '',
|
||||
E.td(label + ':', style='padding: 1ex 1rem'),
|
||||
E.td(E.select(
|
||||
data_region=region,
|
||||
|
|
@ -55,6 +56,13 @@ def create_items(which):
|
|||
create_item('middle', _('Middle')),
|
||||
create_item('right', _('Right'))
|
||||
)
|
||||
elif which is 'controls_footer':
|
||||
ans = E.table(
|
||||
data_which=which,
|
||||
create_item('left', _('Left'), 'display: none'),
|
||||
create_item('middle', _('Middle')),
|
||||
create_item('right', _('Right'))
|
||||
)
|
||||
else:
|
||||
ans = E.table(
|
||||
data_which=which,
|
||||
|
|
|
|||
Loading…
Reference in a new issue