mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Cant customize left of controls footer so hide that control
This commit is contained in:
parent
9102e671e7
commit
a3ec38342d
@ -14,7 +14,7 @@ from utils import fmt_sidx
|
||||
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 create_item(region, label):
|
||||
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…
x
Reference in New Issue
Block a user