From 8cfcd65704237cddbb27ec65b4daa03c2609ebea Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 16 Apr 2024 18:45:02 +0800 Subject: [PATCH] feat(Settings): color picker (#55) (#595) * Update appearance component to include custom color picker * style: adjust color picker styles --------- Co-authored-by: pengyunfei --- .../Settings/components/Appearance.vue | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/components/Settings/components/Appearance.vue b/src/components/Settings/components/Appearance.vue index 6899ffea..44901a67 100644 --- a/src/components/Settings/components/Appearance.vue +++ b/src/components/Settings/components/Appearance.vue @@ -25,6 +25,9 @@ const themeColorOptions = computed>(() => { '#fda4af', ] }) +const isCustomColor = computed(() => { + return !themeColorOptions.value.includes(settings.value.themeColor) +}) const wallpapers = computed>(() => { return [ { @@ -105,6 +108,25 @@ function changeWallpaper(url: string) { }" @click="changeThemeColor(color)" /> +
+ + +