Skip to content

Commit de2bacd

Browse files
committed
Clean up toolbar styling
Signed-off-by: Brianna Major <brianna.major@kitware.com>
1 parent 20ffbd0 commit de2bacd

1 file changed

Lines changed: 40 additions & 38 deletions

File tree

src/vtk_prompt/ui/layout/toolbar.py

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,48 @@ def build_toolbar(layout: Any, app: Any) -> None:
1919
vuetify.VSpacer()
2020

2121
# Settings buttons
22-
with vuetify.VTooltip(
23-
text="Load or download files",
24-
location="bottom",
22+
with vuetify.VBtnGroup(
23+
variant="outlined",
24+
rounded="lg",
25+
color="primary",
26+
classes="mr-4",
27+
divided=True,
2528
):
26-
with vuetify.Template(v_slot_activator="{ props }"):
27-
with vuetify.VBtn(
28-
icon=True,
29-
v_bind="props",
30-
click="advanced_settings_open = true; active_settings_tab = 'files';",
31-
classes="mr-4",
32-
color="primary",
33-
):
34-
vuetify.VIcon("mdi-file-cog-outline")
29+
with vuetify.VTooltip(
30+
text="Load or download files",
31+
location="bottom",
32+
):
33+
with vuetify.Template(v_slot_activator="{ props }"):
34+
with vuetify.VBtn(
35+
icon=True,
36+
v_bind="props",
37+
click="advanced_settings_open = true; active_settings_tab = 'files';",
38+
):
39+
vuetify.VIcon("mdi-file-cog-outline")
3540

36-
with vuetify.VTooltip(
37-
text="Change model settings",
38-
location="bottom",
39-
):
40-
with vuetify.Template(v_slot_activator="{ props }"):
41-
with vuetify.VBtn(
42-
icon=True,
43-
v_bind="props",
44-
click="advanced_settings_open = true; active_settings_tab = 'model';",
45-
classes="mr-4",
46-
color="primary",
47-
):
48-
vuetify.VIcon("mdi-brain")
41+
with vuetify.VTooltip(
42+
text="Change model settings",
43+
location="bottom",
44+
):
45+
with vuetify.Template(v_slot_activator="{ props }"):
46+
with vuetify.VBtn(
47+
icon=True,
48+
v_bind="props",
49+
click="advanced_settings_open = true; active_settings_tab = 'model';",
50+
):
51+
vuetify.VIcon("mdi-brain")
4952

50-
with vuetify.VTooltip(
51-
text="Advanced settings",
52-
location="bottom",
53-
):
54-
with vuetify.Template(v_slot_activator="{ props }"):
55-
with vuetify.VBtn(
56-
icon=True,
57-
v_bind="props",
58-
click="advanced_settings_open = true; active_settings_tab = 'advanced';",
59-
classes="mr-4",
60-
color="primary",
61-
):
62-
vuetify.VIcon("mdi-cog-outline")
53+
with vuetify.VTooltip(
54+
text="Advanced settings",
55+
location="bottom",
56+
):
57+
with vuetify.Template(v_slot_activator="{ props }"):
58+
with vuetify.VBtn(
59+
icon=True,
60+
v_bind="props",
61+
click="advanced_settings_open = true; active_settings_tab = 'advanced';",
62+
):
63+
vuetify.VIcon("mdi-cog-outline")
6364

6465
# Theme switcher
6566
vuetify.VSwitch(
@@ -69,4 +70,5 @@ def build_toolbar(layout: Any, app: Any) -> None:
6970
true_value="light",
7071
false_value="dark",
7172
append_icon=("theme_mode === 'light' ? 'mdi-weather-sunny' : 'mdi-weather-night'",),
73+
icon_color=("theme_mode === 'light' ? 'orange-darken-4' : 'purple-lighten-4'",),
7274
)

0 commit comments

Comments
 (0)