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

29 lines
728 B
QML
Raw 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: Theme.svg(network.iconUrl)
asset.isImage: true
2022-03-02 12:54:58 +00:00
width: parent.width
leftPadding: Theme.padding
rightPadding: Theme.padding
2022-03-02 12:54:58 +00:00
components: [
StatusBaseText {
objectName: "testnetLabel_" + network.chainName
2024-02-20 09:31:04 +00:00
text: qsTr("Sepolia testnet active")
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
}
]
}