1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-02 16:49:47 +02: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
onStatusChanged: {
if (loader.status === Loader.Ready) {
if (Wallpaper.type === Wallpaper.WallpaperType.Html
|| Wallpaper.type === Wallpaper.WallpaperType.ThreeJSScene) {
if (Wallpaper.type === Wallpaper.WallpaperType.Html) {
loader.item.url = loader.webViewUrl
print(loader.item.url, " --- ", loader.webViewUrl)
}
@ -118,6 +117,7 @@ Rectangle {
id: imgCover
anchors {
top: parent.top
topMargin: -3 // To fix the offset from setupWallpaperForOneScreen
left: parent.left
right: parent.right
}