Now cover is complete.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
import Pw.Unitoo.Backend 1.0
|
||||
import "js/helpers.js" as Helper
|
||||
|
||||
Page {
|
||||
id: timerPage
|
||||
@@ -88,22 +89,24 @@ Page {
|
||||
}
|
||||
|
||||
Button {
|
||||
text: boxingTimer.isActive ? qsTr("Pause") : qsTr("Start")
|
||||
preferredWidth: Theme.buttonWidthMedium
|
||||
|
||||
width: Theme.buttonWidthMedium
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
onClicked: {
|
||||
if (boxingTimer.isActive) {
|
||||
boxingTimer.status = BoxingTimer.Pause
|
||||
} else {
|
||||
boxingTimer.restore()
|
||||
}
|
||||
}
|
||||
}
|
||||
Image {
|
||||
anchors {
|
||||
centerIn: parent
|
||||
|
||||
SectionHeader {
|
||||
text: qsTr("Round")
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
|
||||
margins: Theme.paddingSmall
|
||||
}
|
||||
|
||||
source: boxingTimer.isActive ?
|
||||
"image://theme/icon-cover-pause" :
|
||||
"image://theme/icon-cover-play"
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
@@ -116,6 +119,13 @@ Page {
|
||||
text: boxingTimer.roundsToString
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
|
||||
onClicked: Helper.playPauseTimer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user