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