feat(phone/settings): custom background

This commit is contained in:
Christopher committed 2021-03-30 22:21:41 +02:00
1 parent ee7e3a3ae1
commit 4d46566811
7 files changed
+149 -4

No files matched your search

+4 -1
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 set = Reflect.set;
function Phone() {
const { t, i18n } = useTranslation();
@@ -104,7 +105,9 @@ function Phone() {
id="phone"
className="PhoneScreen"
style={{
backgroundImage: `url(media/backgrounds/${settings.wallpaper.value})`,
backgroundImage: settings.customWallpaper
? `url(${settings.customWallpaper})`
: `url(media/backgrounds/${settings.wallpaper.value})`,
}}
>
{isPhoneReady ? (