Skip to content

Commit b068c65

Browse files
authored
Merge pull request #8 from LaSi5002/feature/webviewer-logo
Add 4C Logo
2 parents 435aba6 + b09d56d commit b068c65

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,25 @@ def __init__(self, children=None, **kwargs):
105105

106106
def _toolbar(server_controller):
107107
"""Toolbar layout."""
108-
VFileInput(
108+
109+
html.Img(
110+
src="https://raw.githubusercontent.com/4C-multiphysics/4C-webviewer/refs/heads/main/images/4C-logo/negative-white/4C-logo-landscape_negative.svg",
111+
alt="4C Logo",
112+
style="height: 50px; width: auto; filter: invert(1); padding-left: 20px",
113+
class_="me-2",
114+
)
115+
116+
vuetify.VToolbarTitle(
117+
"4C Webviewer",
118+
tag="h1",
119+
shrink=True,
120+
class_="mx-4",
121+
style="font-weight: 500;",
122+
)
123+
124+
vuetify.VSpacer()
125+
126+
vuetify.VFileInput(
109127
label="Input file",
110128
v_model=("fourc_yaml_file",),
111129
update_modelValue="flushState('fourc_yaml_file')",
@@ -1022,7 +1040,7 @@ def create_gui(server, render_window):
10221040
"""Creates the graphical user interface based on the defined layout
10231041
elements."""
10241042
with SinglePageWithDrawerLayout(server) as layout:
1025-
layout.title.set_text("4C Webviewer")
1043+
layout.title.hide()
10261044

10271045
with layout.toolbar as toolbar:
10281046
toolbar.height = 100

0 commit comments

Comments
 (0)