明暗图标替换

This commit is contained in:
Hooray Hu 2024-04-09 17:20:33 +08:00
parent a861646d76
commit ba3e3273e4
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ function handleCopy() {
:options="[
{ icon: 'i-ri:sun-line', label: '明亮', value: 'light' },
{ icon: 'i-ri:moon-line', label: '暗黑', value: 'dark' },
{ icon: 'i-ri:computer-line', label: '系统', value: '' },
{ icon: 'i-codicon:color-mode', label: '系统', value: '' },
]"
class="w-60"
/>

View File

@ -40,7 +40,7 @@ function toggleColorScheme(event: MouseEvent) {
<HDropdown class="flex-center cursor-pointer px-2 py-1">
<SvgIcon
:name="{
'': 'i-ri:computer-line',
'': 'i-codicon:color-mode',
'light': 'i-ri:sun-line',
'dark': 'i-ri:moon-line',
}[settingsStore.settings.app.colorScheme]" @click="toggleColorScheme"
@ -51,7 +51,7 @@ function toggleColorScheme(event: MouseEvent) {
:options="[
{ icon: 'i-ri:sun-line', label: '', value: 'light' },
{ icon: 'i-ri:moon-line', label: '', value: 'dark' },
{ icon: 'i-ri:computer-line', label: '', value: '' },
{ icon: 'i-codicon:color-mode', label: '', value: '' },
]"
class="m-3"
/>