2022-05-07 11:45:15 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
2022-03-02 12:54:58 +00:00
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core 0.1
|
2022-03-04 09:09:58 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2022-03-02 12:54:58 +00:00
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
property var network
|
2023-06-27 19:56:44 +00:00
|
|
|
property bool areTestNetworksEnabled
|
2022-03-02 12:54:58 +00:00
|
|
|
title: network.chainName
|
2024-10-15 19:26:12 +00:00
|
|
|
asset.name: Theme.svg(network.iconUrl)
|
2022-08-11 11:55:08 +00:00
|
|
|
asset.isImage: true
|
2022-03-02 12:54:58 +00:00
|
|
|
width: parent.width
|
2024-10-15 19:26:12 +00:00
|
|
|
leftPadding: Theme.padding
|
|
|
|
rightPadding: Theme.padding
|
2022-03-02 12:54:58 +00:00
|
|
|
components: [
|
2023-06-27 19:56:44 +00:00
|
|
|
StatusBaseText {
|
2023-09-28 19:10:45 +00:00
|
|
|
objectName: "testnetLabel_" + network.chainName
|
2024-02-20 09:31:04 +00:00
|
|
|
text: qsTr("Sepolia testnet active")
|
2023-06-27 19:56:44 +00:00
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
visible: areTestNetworksEnabled
|
|
|
|
},
|
2022-03-02 12:54:58 +00:00
|
|
|
StatusIcon {
|
2023-04-25 10:32:57 +00:00
|
|
|
icon: "next"
|
2022-03-02 12:54:58 +00:00
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
]
|
2022-05-07 11:45:15 +00:00
|
|
|
}
|