tweak(phone/settings): custom wallpaper dialog

This commit is contained in:
Christopher committed 2021-04-03 16:51:44 +02:00
1 parent e268dae34b
commit bb8d765bc6
5 files changed
+20 -36

No files matched your search

+4 -4
View File
@@ -33,6 +33,7 @@ import WindowSnackbar from './ui/components/WindowSnackbar';
import { usePhone } from './os/phone/hooks/usePhone';
import { useTranslation } from 'react-i18next';
import { useSnackbar } from './ui/hooks/useSnackbar';
import { isDefaultWallpaper } from './apps/settings/utils/isDefaultWallpaper';
function Phone() {
const { t, i18n } = useTranslation();
@@ -104,10 +105,9 @@ function Phone() {
id="phone"
className="PhoneScreen"
style={{
backgroundImage:
settings.wallpaper.label === t('APPS_SETTINGS_OPTIONS_CUSTOM_WALLPAPER')
? `url(${settings.wallpaper.value})`
: `url(media/backgrounds/${settings.wallpaper.value})`,
backgroundImage: !isDefaultWallpaper(settings.wallpaper.value)
? `url(${settings.wallpaper.value})`
: `url(media/backgrounds/${settings.wallpaper.value})`,
}}
>
{isPhoneReady ? (