status-desktop/ui/app/AppLayouts/Profile/controls/WalletNetworkDelegate.qml

30 lines
774 B
QML
Raw Permalink Normal View History

import utils 1.0
2022-03-02 12:54:58 +00:00
import StatusQ.Components 0.1
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
2022-03-02 12:54:58 +00:00
StatusListItem {
property var network
property bool areTestNetworksEnabled
2022-03-02 12:54:58 +00:00
title: network.chainName
asset.name: Style.svg(network.iconUrl)
asset.isImage: true
2022-03-02 12:54:58 +00:00
width: parent.width
leftPadding: Style.current.padding
rightPadding: Style.current.padding
2022-03-02 12:54:58 +00:00
components: [
StatusBaseText {
objectName: "testnetLabel_" + network.chainName
text: qsTr("Goerli testnet active")
font.pixelSize: 15
color: Theme.palette.baseColor1
visible: areTestNetworksEnabled
},
2022-03-02 12:54:58 +00:00
StatusIcon {
icon: "next"
2022-03-02 12:54:58 +00:00
color: Theme.palette.baseColor1
}
]
}