mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 12:08:53 +00:00
fix: proper handling of test network icon
This commit is contained in:
parent
fbcf9cc89a
commit
8f38e10d0a
@ -83,7 +83,7 @@ Item {
|
||||
|
||||
verify(!!delegate)
|
||||
compare(delegate.title, model.chainName)
|
||||
compare(delegate.iconUrl, (model.isTest ? Theme.svg(model.iconUrl + "-test") : Theme.svg(model.iconUrl)))
|
||||
compare(delegate.iconUrl, Theme.svg(model.iconUrl))
|
||||
compare(delegate.showIndicator, controlUnderTest.showIndicator)
|
||||
compare(delegate.multiSelection, controlUnderTest.multiSelection)
|
||||
compare(delegate.checkState, controlUnderTest.selection.includes(model.chainId) ? Qt.Checked : Qt.Unchecked)
|
||||
|
@ -101,7 +101,7 @@ StatusComboBox {
|
||||
|
||||
width: 24
|
||||
height: 24
|
||||
image.source: model.isTest ? Theme.svg(model.iconUrl + "-test") : Theme.svg(model.iconUrl)
|
||||
image.source: Theme.svg(model.iconUrl)
|
||||
z: index + 1
|
||||
|
||||
image.layer.enabled: index < chainRepeater.count - 1 && row.spacing < 0
|
||||
@ -186,9 +186,7 @@ StatusComboBox {
|
||||
value: root.selection[0] ?? -1
|
||||
}
|
||||
|
||||
readonly property string singleSelectionIconUrl: singleSelectionItem.item.iconUrl ? (singleSelectionItem.item.isTest ? singleSelectionItem.item.iconUrl + "-test"
|
||||
: singleSelectionItem.item.iconUrl)
|
||||
: ""
|
||||
readonly property string singleSelectionIconUrl: singleSelectionItem.item.iconUrl ?? ""
|
||||
readonly property string singleCelectionChainName: singleSelectionItem.item.chainName ?? ""
|
||||
|
||||
readonly property string titleText: {
|
||||
|
@ -74,7 +74,7 @@ StatusListView {
|
||||
height: 48
|
||||
width: ListView.view.width
|
||||
title: model.chainName
|
||||
iconUrl: model.isTest ? Theme.svg(model.iconUrl + "-test") : Theme.svg(model.iconUrl)
|
||||
iconUrl: Theme.svg(model.iconUrl)
|
||||
showIndicator: root.showIndicator
|
||||
multiSelection: root.multiSelection
|
||||
interactive: root.interactive
|
||||
@ -97,27 +97,6 @@ StatusListView {
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
property: "layer"
|
||||
delegate: Loader {
|
||||
required property int section
|
||||
width: parent.width
|
||||
height: active ? 44 : 0
|
||||
active: section === 2
|
||||
sourceComponent: layer2text
|
||||
|
||||
Component {
|
||||
id: layer2text
|
||||
StatusBaseText {
|
||||
color: Theme.palette.baseColor1
|
||||
text: qsTr("Layer 2")
|
||||
leftPadding: 16
|
||||
topPadding: 14
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
readonly property bool allSelected: root.selection.length === root.count
|
||||
|
Loading…
x
Reference in New Issue
Block a user