mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-01 22:47:26 -04:00
first push
This commit is contained in:
41
components/NetworkStatusItem.qml
Normal file
41
components/NetworkStatusItem.qml
Normal file
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user