mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f14f6babb9
commit
b54dfb6db6
@ -11,6 +11,7 @@ bar_counter = 0
|
|||||||
class TopBar:
|
class TopBar:
|
||||||
|
|
||||||
SPACING = '0.75em'
|
SPACING = '0.75em'
|
||||||
|
VSPACING = '0.5ex'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
nonlocal bar_counter
|
nonlocal bar_counter
|
||||||
@ -38,7 +39,7 @@ class TopBar:
|
|||||||
bar.appendChild(E.style(style, type='text/css'))
|
bar.appendChild(E.style(style, type='text/css'))
|
||||||
set_css(bar,
|
set_css(bar,
|
||||||
width='100%', display='flex', flex_direction='row', flex_wrap='wrap', justify_content='space-between',
|
width='100%', display='flex', flex_direction='row', flex_wrap='wrap', justify_content='space-between',
|
||||||
font_size=get_font_size('title'), padding_top='0.5ex', padding_bottom='0.5ex', user_select='none',
|
font_size=get_font_size('title'), padding_top=self.VSPACING, padding_bottom=self.VSPACING, user_select='none',
|
||||||
color=get_color('bar-foreground'), background_color=get_color('bar-background')
|
color=get_color('bar-foreground'), background_color=get_color('bar-background')
|
||||||
)
|
)
|
||||||
document.body.appendChild(bar)
|
document.body.appendChild(bar)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user