ADD - separate Home and Lock wallpapers

Store independent Home Screen and Lock Screen wallpaper selections, preserve legacy preferences, and route gallery or camera picks to the selected destination. Add the Settings segmented selector and contract coverage.
This commit is contained in:
Leon.Schmidt
2026-08-15 20:04:45 +02:00
parent f6fb680fbd
commit 14fcfe384d
9 changed files with 152 additions and 31 deletions
+3 -3
View File
@@ -74,10 +74,10 @@ const time = computed(() =>
.trim(),
)
const dragStyle = computed<Record<string, string>>(() => {
const imageUrl = preferences.value.settings.wallpaperImageUrl
const imageUrl = preferences.value.settings.lockWallpaperImageUrl
return {
'--lock-drag': `${dragOffset.value}px`,
...(preferences.value.settings.wallpaper === 'custom' && imageUrl
...(preferences.value.settings.lockWallpaper === 'custom' && imageUrl
? { '--phone-wallpaper-image': `url(${JSON.stringify(imageUrl)})` }
: {}),
}
@@ -289,7 +289,7 @@ onBeforeUnmount(() => {
<section
class="lock-screen"
:class="[
`wallpaper--${preferences.settings.wallpaper}`,
`wallpaper--${preferences.settings.lockWallpaper}`,
{
'lock-screen--dragging': dragging,
'lock-screen--preview': preview,