Skip to content

Commit 9ef3f03

Browse files
gustavosbarretootavio
authored andcommitted
fix(ui): improve dark mode toggle design in AppBar menu
- Replace dynamic theme icons with generic brightness icon for cleaner UI - Update text labels to show current theme state instead of action - Add icons to switch component (sun/moon) for better visual feedback - Adjust densities for improved spacing and visual balance
1 parent 612d790 commit 9ef3f03

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ui/src/components/AppBar/AppBar.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,24 +128,25 @@
128128

129129
<!-- Dark Mode Toggle -->
130130
<v-list-item
131-
density="compact"
132131
@click="toggleDarkMode"
133132
>
134133
<template #prepend>
135134
<v-icon
136-
:icon="isDarkMode ? 'mdi-weather-sunny' : 'mdi-weather-night'"
135+
:icon="isDarkMode ? 'mdi-brightness-6' : 'mdi-brightness-6'"
137136
size="small"
138137
/>
139138
</template>
140-
<v-list-item-title class="text-body-2 font-weight-medium">
141-
{{ isDarkMode ? 'Light Mode' : 'Dark Mode' }}
139+
<v-list-item-title class="font-weight-medium">
140+
{{ isDarkMode ? 'Dark Mode' : 'Light Mode' }}
142141
</v-list-item-title>
143142
<template #append>
144143
<v-switch
145144
:model-value="isDarkMode"
146145
data-test="dark-mode-switch"
147-
density="compact"
148146
color="primary"
147+
density="comfortable"
148+
false-icon="mdi-weather-sunny"
149+
true-icon="mdi-weather-night"
149150
hide-details
150151
readonly
151152
/>

0 commit comments

Comments
 (0)