From fd49bb3a96eacbe17bea6c29db2236ddaf20d9cb Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 31 Jul 2024 00:16:04 +0800 Subject: [PATCH] feat: linear gradient theme color background --- src/components/AppBackground.vue | 105 ++++++++++++------ .../Settings/components/Appearance.vue | 4 + src/logic/storage.ts | 2 + 3 files changed, 76 insertions(+), 35 deletions(-) diff --git a/src/components/AppBackground.vue b/src/components/AppBackground.vue index eb3ed9da..3ab9e72c 100644 --- a/src/components/AppBackground.vue +++ b/src/components/AppBackground.vue @@ -1,9 +1,12 @@ diff --git a/src/components/Settings/components/Appearance.vue b/src/components/Settings/components/Appearance.vue index d9d12319..915b5809 100644 --- a/src/components/Settings/components/Appearance.vue +++ b/src/components/Settings/components/Appearance.vue @@ -115,6 +115,10 @@ function changeWallpaper(url: string) { + + + + diff --git a/src/logic/storage.ts b/src/logic/storage.ts index 6219259b..a5e591f3 100644 --- a/src/logic/storage.ts +++ b/src/logic/storage.ts @@ -30,6 +30,7 @@ export interface Settings { theme: 'light' | 'dark' | 'auto' themeColor: string + useLinearGradientThemeColorBackground: boolean wallpaperMode: 'buildIn' | 'byUrl' wallpaper: string enableWallpaperMasking: boolean @@ -87,6 +88,7 @@ export const settings = useStorageLocal('settings', ref({ theme: 'auto', themeColor: '#00a1d6', + useLinearGradientThemeColorBackground: false, wallpaperMode: 'buildIn', wallpaper: '', enableWallpaperMasking: false,