diff options
Diffstat (limited to 'sysinfowatchlet')
-rw-r--r-- | sysinfowatchlet/metawatch-digital.qml | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/sysinfowatchlet/metawatch-digital.qml b/sysinfowatchlet/metawatch-digital.qml index 1e6acfb..e94ad27 100644 --- a/sysinfowatchlet/metawatch-digital.qml +++ b/sysinfowatchlet/metawatch-digital.qml @@ -9,6 +9,7 @@ Rectangle { Column { anchors.fill: parent + spacing: 4 MWTitle { id: title @@ -16,42 +17,37 @@ Rectangle { icon.source: "icon.png" } - Column { - spacing: 4 - width: 96 + MWSmallLabel { + text: "Battery: " + batteryLevel + "%" + } - Text { - text: "Battery: " + batteryLevel + "%" - } + Rectangle { + id: battery + x: 12 + width: 72 + height: 16 - Rectangle { - id: battery - x: 12 - width: 72 - height: 16 + border.color: "black" + border.width: 1 - border.color: "black" - border.width: 1 - - Rectangle { - width: (batteryLevel / 100) * parent.width - height: parent.height + Rectangle { + width: (batteryLevel / 100) * parent.width + height: parent.height - color: "black" - } + color: "black" } + } - Text { - width: parent.width - text: "Connected to:" - } + MWSmallLabel { + width: parent.width + text: "Connected to:" + } - Text { - width: parent.width - text: networkName - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.Wrap - } + MWLabel { + width: parent.width + text: networkName + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.Wrap } } } |