aboutsummaryrefslogtreecommitdiff
path: root/components/NetworkStatusItem.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-11-23 15:30:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:00 +0100
commit82553b0df20e1597fec83b72fcc8799477e762ae (patch)
tree196d978ab0c74ae3fb4dd01b980a75c63ce4676d /components/NetworkStatusItem.qml
parentdc445edaae6dd7cb98b5337566aa4a5495e97b6b (diff)
downloadmonzero-gui-82553b0df20e1597fec83b72fcc8799477e762ae.tar.gz
monzero-gui-82553b0df20e1597fec83b72fcc8799477e762ae.tar.xz
monzero-gui-82553b0df20e1597fec83b72fcc8799477e762ae.zip
NetworkStatus section development
Diffstat (limited to 'components/NetworkStatusItem.qml')
-rw-r--r--components/NetworkStatusItem.qml32
1 files changed, 16 insertions, 16 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml
index c7950636..984ffd03 100644
--- a/components/NetworkStatusItem.qml
+++ b/components/NetworkStatusItem.qml
@@ -35,20 +35,6 @@ Rectangle {
color: "transparent"
property var connected: Wallet.ConnectionStatus_Disconnected
- function getConnectionStatusImage(status) {
- if (status == Wallet.ConnectionStatus_Connected)
- return "../images/lightning.png"
- else
- return "../images/statusDisconnected.png"
- }
-
- function getConnectionStatusColor(status) {
- if (status == Wallet.ConnectionStatus_Connected)
- return "white"
- else
- return "#AAAAAA"
- }
-
function getConnectionStatusString(status) {
if (status == Wallet.ConnectionStatus_Connected) {
if(!appWindow.daemonSynced)
@@ -72,13 +58,27 @@ Rectangle {
anchors.top: parent.top
width: 40 * scaleRatio
height: 40 * scaleRatio
+ opacity: {
+ if(item.connected == Wallet.ConnectionStatus_Connected){
+ return 1
+ } else {
+ return 0.5
+ }
+ }
Image {
anchors.top: parent.top
anchors.topMargin: 6
anchors.right: parent.right
anchors.rightMargin: 11
- source: getConnectionStatusImage(item.connected)
+ source: {
+ if(item.connected == Wallet.ConnectionStatus_Connected){
+ return "../images/lightning.png"
+ } else {
+ return "../images/lightning-white.png"
+ }
+ }
+ //getConnectionStatusImage(item.connected)
}
}
@@ -108,7 +108,7 @@ Rectangle {
anchors.topMargin: 14
font.family: Style.fontMedium.name
font.pixelSize: 20 * scaleRatio
- color: getConnectionStatusColor(item.connected)
+ color: "white"
text: getConnectionStatusString(item.connected) + translationManager.emptyString
}
}