summaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorJavier S. Pedro <dev.git@javispedro.com>2014-09-27 18:15:22 +0200
committerJavier S. Pedro <dev.git@javispedro.com>2014-09-27 18:15:22 +0200
commit327dab50c887d2818cac9109049bf5fc1f391a17 (patch)
tree9f9b19d665369b291c70056c430f74b02a4d86e9 /qml
parent1cdacce135cad31c2a8d75b95f742c47038211ee (diff)
downloadsalmeta-327dab50c887d2818cac9109049bf5fc1f391a17.tar.gz
salmeta-327dab50c887d2818cac9109049bf5fc1f391a17.zip
enable all the builtin watchfaces
Diffstat (limited to 'qml')
-rw-r--r--qml/pages/AddWidget.qml5
-rw-r--r--qml/pages/MainPage.qml2
-rw-r--r--qml/watch/faces/builtinface0.qml11
-rw-r--r--qml/watch/faces/builtinface1.qml11
-rw-r--r--qml/watch/faces/builtinface2.png (renamed from qml/watch/faces/builtinface_what.png)bin906 -> 906 bytes
-rw-r--r--qml/watch/faces/builtinface2.qml11
-rw-r--r--qml/watch/faces/builtinface4.qml2
-rw-r--r--qml/watch/faces/builtinface5.pngbin0 -> 1663 bytes
-rw-r--r--qml/watch/faces/builtinface5.qml11
9 files changed, 50 insertions, 3 deletions
diff --git a/qml/pages/AddWidget.qml b/qml/pages/AddWidget.qml
index 5c3086e..c854c7c 100644
--- a/qml/pages/AddWidget.qml
+++ b/qml/pages/AddWidget.qml
@@ -19,13 +19,14 @@ Page {
}
delegate : BackgroundItem {
+ id: widgetDelegate
contentHeight: Theme.itemSizeSmall
Label {
anchors.left: parent.left
anchors.margins: Theme.paddingLarge
anchors.verticalCenter: parent.verticalCenter
- text: model.description
+ text: model.description + (!widgetDelegate.enabled ? qsTr(" (does not fit)") : "")
truncationMode: TruncationMode.Elide
color: highlighted ? Theme.highlightColor : Theme.primaryColor
}
@@ -34,6 +35,8 @@ Page {
curWidgets.addWidget(model.url, addToPage, addToPos, model.size);
pageStack.pop();
}
+
+ enabled: !curWidgets.widgetOverlaps(addToPage, addToPos, model.size);
}
}
}
diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml
index b25ff06..20d602f 100644
--- a/qml/pages/MainPage.qml
+++ b/qml/pages/MainPage.qml
@@ -227,7 +227,7 @@ Page {
Label {
x: Theme.paddingLarge
- text: "TODO"
+ text: "TODO: List of notification types"
}
}
}
diff --git a/qml/watch/faces/builtinface0.qml b/qml/watch/faces/builtinface0.qml
new file mode 100644
index 0000000..a8df091
--- /dev/null
+++ b/qml/watch/faces/builtinface0.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 96/2
+ height: 96/2
+
+ Image {
+ anchors.fill: parent
+ source: "builtinface0.png"
+ }
+}
diff --git a/qml/watch/faces/builtinface1.qml b/qml/watch/faces/builtinface1.qml
new file mode 100644
index 0000000..3d4bb57
--- /dev/null
+++ b/qml/watch/faces/builtinface1.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 96
+ height: 96/2
+
+ Image {
+ anchors.fill: parent
+ source: "builtinface3.png"
+ }
+}
diff --git a/qml/watch/faces/builtinface_what.png b/qml/watch/faces/builtinface2.png
index 3ade62b..3ade62b 100644
--- a/qml/watch/faces/builtinface_what.png
+++ b/qml/watch/faces/builtinface2.png
Binary files differ
diff --git a/qml/watch/faces/builtinface2.qml b/qml/watch/faces/builtinface2.qml
new file mode 100644
index 0000000..7c4542a
--- /dev/null
+++ b/qml/watch/faces/builtinface2.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 96
+ height: 96
+
+ Image {
+ anchors.fill: parent
+ source: "builtinface2.png"
+ }
+}
diff --git a/qml/watch/faces/builtinface4.qml b/qml/watch/faces/builtinface4.qml
index f9eff50..ca542d4 100644
--- a/qml/watch/faces/builtinface4.qml
+++ b/qml/watch/faces/builtinface4.qml
@@ -6,6 +6,6 @@ Rectangle {
Image {
anchors.fill: parent
- source: "builtinface4.png"
+ source: "builtinface3.png"
}
}
diff --git a/qml/watch/faces/builtinface5.png b/qml/watch/faces/builtinface5.png
new file mode 100644
index 0000000..d084bb0
--- /dev/null
+++ b/qml/watch/faces/builtinface5.png
Binary files differ
diff --git a/qml/watch/faces/builtinface5.qml b/qml/watch/faces/builtinface5.qml
new file mode 100644
index 0000000..e64703c
--- /dev/null
+++ b/qml/watch/faces/builtinface5.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 96
+ height: 96
+
+ Image {
+ anchors.fill: parent
+ source: "builtinface5.png"
+ }
+}