diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-04-12 15:36:22 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2022-04-13 08:12:07 +0000 |
commit | 45615cddd926540756f19328cad7078cfc9a1219 (patch) | |
tree | 045f7f3f3bbcd2da7db4e9a2dccf4b155eb0867c /resources/tools/dash/app/pal/trending/trending.py | |
parent | c65595288367e8e6f53d225812d55ca4d90cdab2 (diff) |
feat(uti): Refactor styling
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I7880e58b2b97b1c365da7755784d3f93e85568cc
Diffstat (limited to 'resources/tools/dash/app/pal/trending/trending.py')
-rw-r--r-- | resources/tools/dash/app/pal/trending/trending.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/tools/dash/app/pal/trending/trending.py b/resources/tools/dash/app/pal/trending/trending.py index 7801e9cfeb..8abd2e1a8b 100644 --- a/resources/tools/dash/app/pal/trending/trending.py +++ b/resources/tools/dash/app/pal/trending/trending.py @@ -14,6 +14,7 @@ """Instantiate the Trending Dash applocation. """ import dash +import dash_bootstrap_components as dbc from .layout import Layout @@ -30,16 +31,13 @@ def init_trending(server): dash_app = dash.Dash( server=server, routes_pathname_prefix=u"/trending/", - external_stylesheets=[ - u"/static/dist/css/styles.css", - u"https://fonts.googleapis.com/css?family=Lato", - ], + external_stylesheets=[dbc.themes.BOOTSTRAP], ) # Custom HTML layout layout = Layout( app=dash_app, - html_layout_file="pal/trending/html_layout.txt", + html_layout_file="pal/templates/trending_layout.jinja2", spec_file="pal/trending/spec_test_selection.yaml", graph_layout_file="pal/trending/layout.yaml", data_spec_file="pal/data/data.yaml" |