1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2025-02-01 04:51:48 +01:00

Add description text when the wallpaper does not render to guide the user to disable the VisualsPaused feature if he can read this

This commit is contained in:
Elias Steurer 2020-03-21 13:07:27 +01:00
parent 422c4ef189
commit 3b5ee229d5

View File

@ -65,6 +65,20 @@ Item {
onTriggered: requestFadeIn()
}
Text {
id: txtVisualsPaused
text: qsTr("If you can read this, then the VisualsPaused optimization does not work on your system. You can fix this by disable this in: \n Settings -> Perfromance -> Pause wallpaper video rendering while another app is in the foreground ")
font.pointSize: 32
visible: false
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
anchors.centerIn: parent
width: parent.width * .8
color: "white"
}
Connections {
target: window
@ -122,6 +136,7 @@ Item {
onVisualsPausedChanged:{
if(window.checkWallpaperVisible){
webView.visible = !visualsPaused
txtVisualsPaused.visible = visualsPaused
}
}