Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider to update playback speed #108

Merged
merged 11 commits into from
Dec 14, 2023
Next Next commit
Add dummy slider
tsmbland committed Dec 12, 2023
commit 1ca2e7e976998fdd6302cfb10aa3de92a7d3d2c7
26 changes: 24 additions & 2 deletions app/pages/control.py
Original file line number Diff line number Diff line change
@@ -171,11 +171,33 @@ def get_button(func: str, icon: str) -> html.Button:
"display": "flex",
"justify-content": "space-around",
"padding": "10px",
"width": "66%",
"margin": "auto",
},
children=[
get_button("update", "mdi:tick"),
html.Div(
children=[
html.Div(
dcc.Slider(
id="update-interval-slider",
min=1,
max=10,
step=1,
value=7,
),
style={"width": "100%"},
),
html.Label(
"Update Interval (s)",
style={"text-align": "center"},
),
],
style={
"width": "40%",
"display": "flex",
"flex-direction": "column",
"justify-content": "center",
},
),
get_button("default", "iconoir:undo"),
],
),