summaryrefslogtreecommitdiff
path: root/qml/pages
diff options
context:
space:
mode:
authorMarvin Borner2020-04-11 14:24:25 +0200
committerMarvin Borner2020-04-11 14:24:25 +0200
commita2aa0f7c634dfa47fc82c38581bce8dd0a8fa053 (patch)
treefc208b18d1bebbf1558cdb4c880742a236f1d2ab /qml/pages
parent53abf21bad1d10ff8a62da25578c116780d9d20a (diff)
Added challenge dialog and ndjson verificator
Diffstat (limited to 'qml/pages')
-rw-r--r--qml/pages/Board.qml8
-rw-r--r--qml/pages/ChallengeDialog.qml17
2 files changed, 22 insertions, 3 deletions
diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml
index 58af5ee..240fa11 100644
--- a/qml/pages/Board.qml
+++ b/qml/pages/Board.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.0
+import QtQuick 2.2
import Sailfish.Silica 1.0
import org.nemomobile.configuration 1.0
import ".."
@@ -52,12 +52,14 @@ Page {
title: qsTr("Chess")
}
- Label {
+ LinkedLabel {
id: information
+ width: parent.width
+ color: "white"
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: grid.top
bottomPadding: Theme.paddingMedium
- text: qsTr("Please start a game");
+ plainText: qsTr("Please start a game");
}
Grid {
diff --git a/qml/pages/ChallengeDialog.qml b/qml/pages/ChallengeDialog.qml
new file mode 100644
index 0000000..037d53d
--- /dev/null
+++ b/qml/pages/ChallengeDialog.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.2
+import Sailfish.Silica 1.0
+
+Dialog {
+ property var name
+
+ Column {
+ width: parent.width
+
+ DialogHeader { }
+
+ Label {
+ width: parent.width
+ text: name + qsTr(" challenges you")
+ }
+ }
+}