From f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 11 Aug 2012 01:10:25 +0200 Subject: more fixes --- sysinfowatchlet/metawatch-digital.qml | 54 ++++++++++++++++------------------- 1 file changed, 25 insertions(+), 29 deletions(-) (limited to 'sysinfowatchlet/metawatch-digital.qml') 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 } } } -- cgit v1.2.3