summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/metawatch-digital.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfowatchlet/metawatch-digital.qml')
-rw-r--r--sysinfowatchlet/metawatch-digital.qml46
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
+ }
+ }
+}