Skip to content

Commit

Permalink
Update RemoteNodeList.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
rating89us authored Jan 15, 2022
1 parent 4b9520c commit 7dcb540
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/RemoteNodeList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ ColumnLayout {
height: 30
Layout.fillWidth: true
color: itemMouseArea.containsMouse || trustedDaemonCheckMark.labelMouseArea.containsMouse || index === remoteNodesModel.selected ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent"
property var networkType: remoteNodesModel.get(index).networkType
visible: (networkType ? networkType == persistentSettings.nettype.toString()
: persistentSettings.nettype.toString() == 0 ? true
: false)

Rectangle {
visible: index === remoteNodesModel.selected
Expand All @@ -76,7 +80,7 @@ ColumnLayout {
anchors.left: parent.left
anchors.top: parent.top
height: 1
visible: index > 0
visible: index != remoteNodesModel.findFirstRemoteNodeAvailable(persistentSettings.nettype)

MoneroEffects.ColorTransition {
targetObj: parent
Expand All @@ -90,6 +94,7 @@ ColumnLayout {
anchors.rightMargin: 80
color: "transparent"
property var trusted: remoteNodesModel.get(index).trusted
property var label: remoteNodesModel.get(index).label

MoneroComponents.TextPlain {
id: addressText
Expand All @@ -99,7 +104,7 @@ ColumnLayout {
anchors.left: parent.left
anchors.leftMargin: 6
font.pixelSize: 16
text: address
text: (label ? label + " (" + address + ")" : address)
themeTransition: false
elide: Text.ElideMiddle
}
Expand Down

0 comments on commit 7dcb540

Please sign in to comment.