58 lines
1.3 KiB
QML
58 lines
1.3 KiB
QML
|
import QtQuick 2.11
|
||
|
import QtQuick.Controls 2.4
|
||
|
import "./"
|
||
|
|
||
|
Page {
|
||
|
id: root
|
||
|
|
||
|
signal pageOpened()
|
||
|
|
||
|
background: Rectangle {
|
||
|
color: settings.theme("PageBackgroundColor")
|
||
|
}
|
||
|
|
||
|
Label {
|
||
|
id: percent
|
||
|
text: "You had " + calender.dateCount/calender.correct*100 + "% right!"
|
||
|
font.pixelSize: parent.width * 0.05
|
||
|
color: settings.theme("PageTextColor")
|
||
|
anchors {
|
||
|
horizontalCenter: parent.horizontalCenter
|
||
|
top: parent.top
|
||
|
topMargin: parent.height * 0.2
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Row {
|
||
|
id: buttonRow
|
||
|
anchors {
|
||
|
horizontalCenter: parent.horizontalCenter
|
||
|
bottom: parent.bottom
|
||
|
bottomMargin: parent.height * 0.15
|
||
|
}
|
||
|
height: childrenRect.height
|
||
|
width: childrenRect.width
|
||
|
spacing: parent.width * 0.1
|
||
|
|
||
|
RoundButton {
|
||
|
id: homeButton
|
||
|
height: root.width * 0.2
|
||
|
width: height
|
||
|
text: "home"
|
||
|
onClicked: {
|
||
|
game.start()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
RoundButton {
|
||
|
id: startButtons
|
||
|
height: root.width * 0.2
|
||
|
width: height
|
||
|
text: "start"
|
||
|
onClicked: {
|
||
|
calender.start()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|