feat: replace nuxt icons with unocss icons
This commit is contained in:
@@ -11,9 +11,9 @@ const selectTheme = (colorScheme: Theme) => {
|
||||
};
|
||||
|
||||
const themeOptions: DropdownItem[] = [
|
||||
{ id: 'light', label: 'Light', icon: 'mynaui:sun', onClick: () => selectTheme('light') },
|
||||
{ id: 'dark', label: 'Dark', icon: 'mynaui:moon', onClick: () => selectTheme('dark') },
|
||||
{ id: 'system', label: 'System', icon: 'mynaui:desktop', onClick: () => selectTheme('system') },
|
||||
{ id: 'light', label: 'Light', icon: 'i-mynaui-sun', onClick: () => selectTheme('light') },
|
||||
{ id: 'dark', label: 'Dark', icon: 'i-mynaui-moon', onClick: () => selectTheme('dark') },
|
||||
{ id: 'system', label: 'System', icon: 'i-mynaui-desktop', onClick: () => selectTheme('system') },
|
||||
];
|
||||
|
||||
const currentOption = computed(
|
||||
@@ -35,6 +35,6 @@ const toggleDropdown = (e: MouseEvent) => {
|
||||
<template>
|
||||
<button aria-label="Open theme switcher" @click="toggleDropdown"
|
||||
class="h-7 w-7 flex items-center justify-center rounded-lg hover:bg-[var(--color-hover)] focus-visible:bg-[var(--color-hover)] transition-colors active:text-[var(--text-primary)]">
|
||||
<Icon :name="currentOption!.icon!" class="text-5 pointer-events-none" />
|
||||
<span :class="['text-5 pointer-events-none', currentOption!.icon]"></span>
|
||||
</button>
|
||||
</template>
|
||||
Reference in New Issue
Block a user