Skip to content

Commit

Permalink
bootstrap theme for dcc compoments
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiepeng committed Jul 13, 2024
1 parent 17a1731 commit 0bd8cce
Show file tree
Hide file tree
Showing 8 changed files with 610 additions and 541 deletions.
1 change: 1 addition & 0 deletions app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
DATA_PATH = "./data"
FRAME_CACHE_PATH = "./cache/frame"
DASH_CACHE_PATH = "./cache/dash"
THEME = "dbc"

EXPIRATION = 172800 # 2 days in seconds
CACHE_KEYS = {
Expand Down
22 changes: 19 additions & 3 deletions app_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import plotly.io as pio

from app_config import APP_TITLE, APP_VERSION
from app_config import APP_TITLE, APP_VERSION, THEME

colorscales = [
"Blackbody",
Expand Down Expand Up @@ -446,6 +446,16 @@
dbc.CardHeader("Filter"),
dbc.CardBody(
[
dbc.Label("Visibility Options"),
html.Div(
dcc.Dropdown(
id="dropdown-visibility",
options=["visible", "hidden"],
value=["visible"],
multi=True,
),
className=THEME,
),
html.Div(
id="dropdown-container", children=[]
),
Expand Down Expand Up @@ -1095,7 +1105,10 @@
dbc.Row(
[
dbc.Col(
dcc.Dropdown(id="dim-picker-parallel", multi=True),
html.Div(
dcc.Dropdown(id="dim-picker-parallel", multi=True),
className=THEME,
),
),
dbc.Tooltip(
"Dimensions",
Expand Down Expand Up @@ -1390,7 +1403,10 @@ def get_app_layout():
),
dbc.Col(
dbc.Collapse(
dcc.Dropdown(id="file-add", multi=True),
html.Div(
dcc.Dropdown(id="file-add", multi=True),
className=THEME,
),
id="collapse-add",
is_open=False,
),
Expand Down
Loading

0 comments on commit 0bd8cce

Please sign in to comment.