Update appearance component to include custom color picker

This commit is contained in:
pengyunfei
2024-04-12 21:22:41 +08:00
parent ba14f21809
commit 4403eac68d

View File

@@ -105,6 +105,21 @@ function changeWallpaper(url: string) {
}"
@click="changeThemeColor(color)"
/>
<div
w-20px h-20px rounded-8 cursor-pointer transition
overflow-hidden
flex items-center justify-center
>
<input
:value="settings.themeColor"
min-w-30px
h-30px
padding-0
block
type="color"
@input="(e) => changeThemeColor((e.target as HTMLInputElement)?.value)"
>
</div>
</div>
</SettingsItem>
</SettingsItemGroup>