From cecbf060661a3cf47e876f8dec0207e0f082c3d4 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 25 Aug 2014 22:24:47 +0200 Subject: Added icons : - restart level Added transitions --- qml/pages/Board.qml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'qml/pages/Board.qml') diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml index 37a0e89..27b1974 100644 --- a/qml/pages/Board.qml +++ b/qml/pages/Board.qml @@ -2,7 +2,6 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 - import io.thp.pyotherside 1.2 @@ -16,25 +15,25 @@ Page { Column { - width:parent.width - height: parent.height + anchors.fill: parent; + spacing: 25 - spacing: 2 -// Row { + Row { -// height: 60 + width: parent.width; -// //anchors.horizontalCenter: parent.horizontalCenter -// Repeater { -// model: 3 -// Rectangle { -// width: 100; height: 40 -// border.width: 1 -// color: "yellow" -// } -// } -// } + IconButton { + width: parent.width / 2; + icon.source: "image://theme/icon-m-back" + onClicked: console.log("Previous!") + } + IconButton { + width: parent.width / 2; + icon.source: "image://theme/icon-m-refresh" + onClicked: goban.start() + } + } Goban { id:goban @@ -54,10 +53,14 @@ Page { delegate: Text { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter + + color: Theme.primaryColor + font.family: Theme.fontFamily + font.pixelSize: Theme.fontSizeMedium + width: view.itemWidth height: view.height - text: "Level " + index - color: "white" + text: "Problem " + index } } -- cgit v1.2.3