diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-23 02:28:48 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-06-23 03:09:29 +0200 |
| commit | 614a7a086a636f6d6d1a67425fb147d71df39bac (patch) | |
| tree | 12568f94587f98b75da1a2f4cb4de179a5f81724 /components/RemoteNodeList.qml | |
| parent | 453388f7444c08fed77f9d4e256666abc77c64dd (diff) | |
| download | monzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.tar.gz monzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.tar.xz monzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.zip | |
RemoteNodeList: display shield icon if trusted daemon
Diffstat (limited to 'components/RemoteNodeList.qml')
| -rw-r--r-- | components/RemoteNodeList.qml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/components/RemoteNodeList.qml b/components/RemoteNodeList.qml index 2e9c36f4..96e252c4 100644 --- a/components/RemoteNodeList.qml +++ b/components/RemoteNodeList.qml @@ -59,7 +59,7 @@ ColumnLayout { Rectangle { height: 30 Layout.fillWidth: true - color: itemMouseArea.containsMouse || index === remoteNodesModel.selected ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent" + color: itemMouseArea.containsMouse || trustedDaemonCheckMark.labelMouseArea.containsMouse || index === remoteNodesModel.selected ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent" Rectangle { color: MoneroComponents.Style.appWindowBorderColor @@ -80,8 +80,10 @@ ColumnLayout { anchors.fill: parent anchors.rightMargin: 80 color: "transparent" + property var trusted: remoteNodesModel.get(index).trusted MoneroComponents.TextPlain { + id: addressText color: index === remoteNodesModel.selected ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left @@ -91,6 +93,22 @@ ColumnLayout { themeTransition: false } + MoneroComponents.Label { + id: trustedDaemonCheckMark + anchors.left: addressText.right + anchors.leftMargin: 6 + anchors.verticalCenter: parent.verticalCenter + z: itemMouseArea.z + 1 + fontSize: 16 + fontFamily: FontAwesome.fontFamilySolid + fontColor: index === remoteNodesModel.selected ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor + styleName: "Solid" + visible: trusted + text: FontAwesome.shieldAlt + tooltip: qsTr("Trusted daemon") + translationManager.emptyString + themeTransition: false + } + MouseArea { id: itemMouseArea cursorShape: Qt.PointingHandCursor |
