summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/liveview.qml
blob: f5f1850bf988337bed8e783f3056bdb0b86fa392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import Qt 4.7
import com.javispedro.sowatch.liveview 1.0

LVPage {
	Column {
		anchors.fill: parent
		spacing: 2

		LVLabel {
			text: "Battery: " + batteryLevel + "%"
		}

		Rectangle {
			id: battery
			anchors.horizontalCenter: parent.horizontalCenter
			width: 72
			height: 16

			border.color: "white"
			border.width: 1

			Rectangle {
				width: (batteryLevel / 100) * parent.width
				height: parent.height

				color: "white"
			}
		}

		LVLabel {
			width: parent.width
			text: "Connected to:"
		}

		LVLabel {
			width: parent.width
			text: networkName
			horizontalAlignment: Text.AlignHCenter
			wrapMode: Text.Wrap
		}
	}
}