feat(connector)_: use status image for DApps connected with Status connector
This commit is contained in:
parent
e279e639a4
commit
d6411f08ab
|
@ -178,6 +178,7 @@
|
|||
<file>assets/img/icons/copy.svg</file>
|
||||
<file>assets/img/icons/crown.svg</file>
|
||||
<file>assets/img/icons/dapp.svg</file>
|
||||
<file>assets/img/icons/status-connector.svg</file>
|
||||
<file>assets/img/icons/delete.svg</file>
|
||||
<file>assets/img/icons/desktop.svg</file>
|
||||
<file>assets/img/icons/discord.svg</file>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 644 KiB |
|
@ -397,6 +397,7 @@ WalletConnectSDKBase {
|
|||
dAppUrl: proposalMedatada.url
|
||||
dAppName: proposalMedatada.name
|
||||
dAppIconUrl: !!proposalMedatada.icons && proposalMedatada.icons.length > 0 ? proposalMedatada.icons[0] : ""
|
||||
dAppBadgeIcon: "status-connector"
|
||||
multipleChainSelection: false
|
||||
|
||||
onConnect: {
|
||||
|
@ -438,6 +439,7 @@ WalletConnectSDKBase {
|
|||
dappName: request.dappName
|
||||
dappUrl: request.dappUrl
|
||||
dappIcon: request.dappIcon
|
||||
badgeIcon: "status-connector"
|
||||
|
||||
accountColor: request.account.color
|
||||
accountName: request.account.name
|
||||
|
|
|
@ -62,6 +62,7 @@ StatusDialog {
|
|||
property alias dAppUrl: dappCard.dAppUrl
|
||||
property alias dAppName: dappCard.name
|
||||
property alias dAppIconUrl: dappCard.iconUrl
|
||||
property alias dAppBadgeIcon: dappCard.badgeIcon
|
||||
property alias connectionStatus: d.connectionStatus
|
||||
|
||||
/*
|
||||
|
|
|
@ -22,6 +22,8 @@ SignTransactionModalBase {
|
|||
required property url dappUrl
|
||||
required property url dappIcon
|
||||
required property string dappName
|
||||
// Making a non breaking change for the dappBadge, default is walletconnect
|
||||
property string badgeIcon
|
||||
// Payload to sign
|
||||
required property string requestPayload
|
||||
// Account
|
||||
|
@ -46,6 +48,7 @@ SignTransactionModalBase {
|
|||
subtitle: SQUtils.StringUtils.extractDomainFromLink(root.dappUrl)
|
||||
headerIconComponent: RoundImageWithBadge {
|
||||
imageUrl: root.dappIcon
|
||||
badgeIcon: root.badgeIcon
|
||||
width: 40
|
||||
height: 40
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ Item {
|
|||
id: root
|
||||
|
||||
property url imageUrl: ""
|
||||
property string badgeIcon: "walletconnect"
|
||||
property string badgeIcon: ""
|
||||
property string fallbackIcon: "dapp"
|
||||
|
||||
readonly property bool iconLoaded: !mainImage.isError && !mainImage.isLoading && mainImage.image.source !== ""
|
||||
|
@ -76,7 +76,7 @@ Item {
|
|||
height: width
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
asset.name: root.badgeIcon
|
||||
asset.name: root.badgeIcon || "walletconnect"
|
||||
asset.color: "transparent"
|
||||
asset.width: width
|
||||
asset.height: height
|
||||
|
|
|
@ -16,6 +16,7 @@ ColumnLayout {
|
|||
property alias name: appNameText.text
|
||||
property url dAppUrl: ""
|
||||
property url iconUrl: ""
|
||||
property string badgeIcon: ""
|
||||
property bool connectionSuccessful
|
||||
property bool connectionAttempted
|
||||
|
||||
|
@ -28,6 +29,7 @@ ColumnLayout {
|
|||
Layout.preferredHeight: Layout.preferredWidth
|
||||
|
||||
imageUrl: iconUrl
|
||||
badgeIcon: root.badgeIcon
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
Loading…
Reference in New Issue