ENH - overhaul wallpaper customization

This commit is contained in:
smx.pusha
2026-08-14 13:19:05 +02:00
parent 1c90c62e62
commit 33cf49e8b6
9 changed files with 917 additions and 39 deletions
+9 -3
View File
@@ -73,9 +73,15 @@ const time = computed(() =>
.join('')
.trim(),
)
const dragStyle = computed(() => ({
'--lock-drag': `${dragOffset.value}px`,
}))
const dragStyle = computed<Record<string, string>>(() => {
const imageUrl = preferences.value.settings.wallpaperImageUrl
return {
'--lock-drag': `${dragOffset.value}px`,
...(preferences.value.settings.wallpaper === 'custom' && imageUrl
? { '--phone-wallpaper-image': `url(${JSON.stringify(imageUrl)})` }
: {}),
}
})
const flashlightShortcutColors = computed(() =>
flashlightActive.value
? {