summaryrefslogtreecommitdiff
path: root/app/qml/pages/WatchPage.qml
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-08-06 01:08:33 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-08-06 01:08:33 +0200
commitc1534c22728355e658b275cf3f6ef13e85915676 (patch)
treec4899b2f9fada23476e0566a9b0b101679f822f3 /app/qml/pages/WatchPage.qml
parent3d797fa577b640efc524467092ac502e783203f5 (diff)
Pages layouts improvements
Diffstat (limited to 'app/qml/pages/WatchPage.qml')
-rw-r--r--app/qml/pages/WatchPage.qml34
1 files changed, 24 insertions, 10 deletions
diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml
index 68502bd..90e5ec9 100644
--- a/app/qml/pages/WatchPage.qml
+++ b/app/qml/pages/WatchPage.qml
@@ -37,10 +37,12 @@ Page {
id: page
SilicaFlickable {
+ id: flickable
anchors.fill: parent
-
contentHeight: column.height
+ VerticalScrollDecorator { flickable: flickable }
+
Column {
id: column
@@ -50,19 +52,31 @@ Page {
title: pebbled.name
}
- Button {
- text: "Ping"
- onClicked: {
- pebbled.ping(66)
+ Row {
+ anchors {
+ left: parent.left
+ right: parent.right
+ margins: Theme.paddingLarge
}
- }
- Button {
- text: "Sync Time"
- onClicked: {
- pebbled.time()
+
+ Button {
+ text: "Ping"
+ width: parent.width / 2
+ onClicked: {
+ pebbled.ping(66)
+ }
+ }
+
+ Button {
+ text: "Sync Time"
+ width: parent.width / 2
+ onClicked: {
+ pebbled.time()
+ }
}
}
+
}
}
}