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

Fix next btn logic

Add better text hint for gif and video
This commit is contained in:
kelteseth 2018-10-14 17:29:19 +02:00
parent 7c7b614d2a
commit 989dc77046
3 changed files with 19 additions and 14 deletions

View File

@ -205,7 +205,7 @@ Item {
state: "diabledPage0"
onClicked: {
if (!page_0.canNext && !page_0.gifCreated )
if (!page_0.canNext || !page_0.gifCreated )
return
if (view.currentIndex < view.count - 1)

View File

@ -48,15 +48,16 @@ Button {
}
}
]
transitions: [
Transition {
from: "*"
to: "*"
NumberAnimation {
property: "width"
easing.type: Easing.InOutQuad
duration: 2000
}
}
]
// TODO find a way to smoothly change with on text change
// transitions: [
// Transition {
// from: "*"
// to: "*"
// NumberAnimation {
// property: "width"
// easing.type: Easing.InOutQuad
// duration: 2000
// }
// }
// ]
}

View File

@ -56,9 +56,9 @@ Rectangle {
}
Text {
id: text1
id: txtConvert
color: "white"
text: qsTr("Generating preview...")
text: qsTr("Generating preview video...")
font.pixelSize: 14
anchors {
horizontalCenter: parent.horizontalCenter
@ -71,6 +71,10 @@ Rectangle {
target: screenPlayCreate
onCreateWallpaperStateChanged: {
if (state === Create.State.ConvertingPreviewGif) {
txtConvert.text = qsTr("Generating preview gif...")
}
if (state === Create.State.ConvertingPreviewGifFinished) {
imgPreview.source = "file:///"
+ screenPlayCreate.workingDir + "/preview.gif"