diff options
| author | marcin <z.krzysztoff7@gmail.com> | 2014-07-07 19:08:30 +0200 |
|---|---|---|
| committer | marcin <z.krzysztoff7@gmail.com> | 2014-07-07 19:08:30 +0200 |
| commit | 62df25ce8e090f53aef822c2b22c754fd4fca3e1 (patch) | |
| tree | cf7af7fb5e3700dc26599f46aebf6676cb832a21 /components/NetworkStatusItem.qml | |
| download | monzero-gui-62df25ce8e090f53aef822c2b22c754fd4fca3e1.tar.gz monzero-gui-62df25ce8e090f53aef822c2b22c754fd4fca3e1.tar.xz monzero-gui-62df25ce8e090f53aef822c2b22c754fd4fca3e1.zip | |
first push
Diffstat (limited to 'components/NetworkStatusItem.qml')
| -rw-r--r-- | components/NetworkStatusItem.qml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml new file mode 100644 index 00000000..bf6cf303 --- /dev/null +++ b/components/NetworkStatusItem.qml @@ -0,0 +1,41 @@ +import QtQuick 2.0 + +Row { + id: item + property bool connected: false + + Item { + id: iconItem + anchors.bottom: parent.bottom + width: 50 + height: 50 + + Image { + anchors.centerIn: parent + source: item.connected ? "../images/statusConnected.png" : + "../images/statusDisconnected.png" + } + } + + Column { + anchors.bottom: parent.bottom + height: 53 + spacing: 3 + + Text { + anchors.left: parent.left + font.family: "Arial" + font.pixelSize: 12 + color: "#545454" + text: qsTr("Network status") + } + + Text { + anchors.left: parent.left + font.family: "Arial" + font.pixelSize: 18 + color: item.connected ? "#FF6C3B" : "#AAAAAA" + text: item.connected ? qsTr("Connected") : qsTr("Disconnected") + } + } +} |
