2018-02-13 08:53:53 -05:00
|
|
|
import QtQuick 2.0
|
2018-02-13 23:22:15 -05:00
|
|
|
import QtQuick.Controls 1.4
|
2018-02-14 08:53:52 -05:00
|
|
|
import QtGraphicalEffects 1.0
|
2018-02-13 08:53:53 -05:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
color: "blue"
|
|
|
|
|
|
|
|
Image {
|
|
|
|
source: 'images/backdrop.jpg'
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: logo
|
|
|
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 20
|
|
|
|
|
|
|
|
color: Qt.rgba(1, 1, 1, 0.5)
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
height: logoImage.height
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: logoImage
|
|
|
|
source: 'images/logo.png'
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-13 23:22:15 -05:00
|
|
|
Column {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
width: parent.width
|
2018-02-14 08:53:52 -05:00
|
|
|
spacing: 10
|
2018-02-13 23:22:15 -05:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: button
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
|
|
|
width: parent.width - 50
|
|
|
|
height: 50
|
2018-02-14 08:53:52 -05:00
|
|
|
radius: 10
|
2018-02-13 23:22:15 -05:00
|
|
|
|
2018-02-14 08:53:52 -05:00
|
|
|
color: "#9e9e9e"
|
2018-02-13 23:22:15 -05:00
|
|
|
|
|
|
|
border.color: "#333333"
|
2018-02-14 08:53:52 -05:00
|
|
|
border.width: 2
|
|
|
|
|
|
|
|
layer.enabled: true
|
|
|
|
layer.effect: DropShadow {
|
|
|
|
transparentBorder: true
|
|
|
|
horizontalOffset: 5
|
|
|
|
verticalOffset: 5
|
|
|
|
radius: 5.0
|
|
|
|
samples: 5
|
|
|
|
}
|
2018-02-13 23:22:15 -05:00
|
|
|
|
|
|
|
Text {
|
|
|
|
text: "New Game"
|
2018-02-14 08:53:52 -05:00
|
|
|
font.pointSize: 18
|
2018-02-13 23:22:15 -05:00
|
|
|
font.bold: true
|
|
|
|
height: 30
|
2018-02-13 08:53:53 -05:00
|
|
|
|
2018-02-14 08:53:52 -05:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2018-02-13 23:22:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
onPressed: button.color = "#555555"
|
2018-02-14 08:53:52 -05:00
|
|
|
onReleased: button.color = "#9e9e9e"
|
2018-02-13 23:22:15 -05:00
|
|
|
onClicked: {
|
|
|
|
appPage.source = "Board.qml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Quit"
|
|
|
|
width: parent.width - 50
|
|
|
|
height: 50
|
|
|
|
onClicked: Qt.quit()
|
|
|
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
2018-02-13 08:53:53 -05:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: 20
|
|
|
|
|
|
|
|
color: Qt.rgba(1, 1, 1, 0.5)
|
|
|
|
width: parent.width
|
|
|
|
height: 20
|
|
|
|
|
|
|
|
Text {
|
2018-02-13 15:18:59 -05:00
|
|
|
text: "v" + appVersion
|
2018-02-13 08:53:53 -05:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|