Skip to content

Commit

Permalink
fix: respect darkModeToggle config in theme customizer
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed Nov 17, 2024
1 parent be265df commit 2110ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ThemeCustomizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</template>
</div>
</div>
<div class="space-y-1.5">
<div v-if="darkModeToggle" class="space-y-1.5">
<UiLabel>Theme</UiLabel>
<div class="grid grid-cols-3 gap-2">
<UiButton
Expand Down Expand Up @@ -80,6 +80,7 @@
import { themes } from '@/lib/registry/themes';
const { themeClass, theme, radius, setTheme, setRadius } = useThemes();
const { darkModeToggle } = useConfig().value.header;
// Create an array of color values
const allColors: Color[] = [
Expand Down

0 comments on commit 2110ffb

Please sign in to comment.