Round the progress bar corners as well

This commit is contained in:
Kovid Goyal 2023-10-24 13:19:47 +05:30
parent 5cbdcf2a5e
commit fcc8795078
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -87,8 +87,8 @@ class ReadAudioEbook:
),
E.div(
data_component="progress_bar",
style=f'height:1.5em; display:block; background-color:{get_color("window-background2")}; width:70%; margin:1em',
E.div(style=f'display:block; background-color:{get_color("window-foreground")}; height:100%'),
style=f'height:1.5em; border-radius: 0.75em; overflow: hidden; flex-grow: 100; display:block; background-color:{get_color("window-background2")}; margin:1em',
E.div(style=f'display:block; width: 0%; background-color:{get_color("window-foreground")}; height:100%'),
),
E.div(
style='height: 3ex; display: flex; align-items: center; justify-content: center',