diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 18:15:22 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 18:15:22 +0200 |
commit | 327dab50c887d2818cac9109049bf5fc1f391a17 (patch) | |
tree | 9f9b19d665369b291c70056c430f74b02a4d86e9 /qml | |
parent | 1cdacce135cad31c2a8d75b95f742c47038211ee (diff) | |
download | salmeta-327dab50c887d2818cac9109049bf5fc1f391a17.tar.gz salmeta-327dab50c887d2818cac9109049bf5fc1f391a17.zip |
enable all the builtin watchfaces
Diffstat (limited to 'qml')
-rw-r--r-- | qml/pages/AddWidget.qml | 5 | ||||
-rw-r--r-- | qml/pages/MainPage.qml | 2 | ||||
-rw-r--r-- | qml/watch/faces/builtinface0.qml | 11 | ||||
-rw-r--r-- | qml/watch/faces/builtinface1.qml | 11 | ||||
-rw-r--r-- | qml/watch/faces/builtinface2.png (renamed from qml/watch/faces/builtinface_what.png) | bin | 906 -> 906 bytes | |||
-rw-r--r-- | qml/watch/faces/builtinface2.qml | 11 | ||||
-rw-r--r-- | qml/watch/faces/builtinface4.qml | 2 | ||||
-rw-r--r-- | qml/watch/faces/builtinface5.png | bin | 0 -> 1663 bytes | |||
-rw-r--r-- | qml/watch/faces/builtinface5.qml | 11 |
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 Binary files differindex 3ade62b..3ade62b 100644 --- a/qml/watch/faces/builtinface_what.png +++ b/qml/watch/faces/builtinface2.png 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 Binary files differnew file mode 100644 index 0000000..d084bb0 --- /dev/null +++ b/qml/watch/faces/builtinface5.png 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" + } +} |