summaryrefslogtreecommitdiff
path: root/qml/pages/Board.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/pages/Board.qml')
-rw-r--r--qml/pages/Board.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml
index 27b1974..27fc319 100644
--- a/qml/pages/Board.qml
+++ b/qml/pages/Board.qml
@@ -23,13 +23,20 @@ Page {
width: parent.width;
IconButton {
- width: parent.width / 2;
+ width: (parent.width - parent.height) / 2;
icon.source: "image://theme/icon-m-back"
onClicked: console.log("Previous!")
}
+ Image {
+ width: parent.height;
+ source: "../content/gfx/" + (goban.currentPlayer ? "white":"black") + ".png"
+ height: parent.height;
+ scale: 0.5
+ }
+
IconButton {
- width: parent.width / 2;
+ width: (parent.width - parent.height) / 2;
icon.source: "image://theme/icon-m-refresh"
onClicked: goban.start()
}