Skip to content

Commit

Permalink
update darkmode switch design
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiepeng committed Jul 15, 2024
1 parent ac23c06 commit ae48728
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions app_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,38 @@
dbc.Col(
dbc.Row(
[
dbc.Col(
dbc.InputGroup(
[
dbc.Label(
html.I(
className="bi bi-brightness-high-fill"
),
className="me-2",
),
dbc.Checklist(
options=[
{
"label": html.I(
className="bi bi-moon-stars-fill"
),
"value": True,
}
],
value=[True],
id="darkmode-switch",
switch=True,
),
dbc.Tooltip(
"Toggle between light and dark background",
id="darkmode-switch-tooltip",
target="darkmode-switch",
placement="top",
),
],
),
width="auto",
),
dbc.Col(
dbc.InputGroup(
[
Expand Down Expand Up @@ -190,18 +222,6 @@
),
width=3,
),
dbc.Col(
dbc.Checklist(
options=[
{"label": "Dark mode", "value": True}
],
value=[True],
id="darkmode-switch",
switch=True,
style={"float": "right"},
),
width=6,
),
dbc.Col(
dcc.Graph(
id="scatter3d",
Expand Down

0 comments on commit ae48728

Please sign in to comment.