diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 04:53:46 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 04:53:46 +0200 |
commit | cf5d24b94d96b722c6d76c2225293a56a50d3c2b (patch) | |
tree | fece0c539fe4c40e1faae109f53c46ddc5b0d222 /sysinfowatchlet/metawatch-digital.qml | |
parent | 2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (diff) | |
download | sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.tar.gz sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.zip |
watchlets working!
Diffstat (limited to 'sysinfowatchlet/metawatch-digital.qml')
-rw-r--r-- | sysinfowatchlet/metawatch-digital.qml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sysinfowatchlet/metawatch-digital.qml b/sysinfowatchlet/metawatch-digital.qml new file mode 100644 index 0000000..65e9a7d --- /dev/null +++ b/sysinfowatchlet/metawatch-digital.qml @@ -0,0 +1,46 @@ +import QtQuick 1.0 + +Rectangle { + width: 96 + height: 96 + + color: "white" + + Column { + anchors.fill: parent + spacing: 4 + + Text { + text: "Battery: " + batteryLevel + "%" + } + + Rectangle { + id: battery + x: 12 + width: 72 + height: 16 + + border.color: "black" + border.width: 1 + + Rectangle { + width: (batteryLevel / 100) * parent.width + height: parent.height + + color: "black" + } + } + + Text { + width: parent.width + text: "Connected to:" + } + + Text { + width: parent.width + text: networkName + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.Wrap + } + } +} |