1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix wallpaper custom margin

This commit is contained in:
Elias Steurer 2020-12-11 14:14:00 +01:00
parent 79af9688f8
commit 0fc196368b

View File

@ -97,8 +97,7 @@ Rectangle {
property string webViewUrl property string webViewUrl
onStatusChanged: { onStatusChanged: {
if (loader.status === Loader.Ready) { if (loader.status === Loader.Ready) {
if (Wallpaper.type === Wallpaper.WallpaperType.Html if (Wallpaper.type === Wallpaper.WallpaperType.Html) {
|| Wallpaper.type === Wallpaper.WallpaperType.ThreeJSScene) {
loader.item.url = loader.webViewUrl loader.item.url = loader.webViewUrl
print(loader.item.url, " --- ", loader.webViewUrl) print(loader.item.url, " --- ", loader.webViewUrl)
} }
@ -118,6 +117,7 @@ Rectangle {
id: imgCover id: imgCover
anchors { anchors {
top: parent.top top: parent.top
topMargin: -3 // To fix the offset from setupWallpaperForOneScreen
left: parent.left left: parent.left
right: parent.right right: parent.right
} }