fix(@desktop): Fix icons regressions

Icons in LoginView accounts list and Community members list.

Fixes #7284
This commit is contained in:
Michal Iskierko 2022-09-09 14:51:10 +02:00 committed by Michał Iskierko
parent 235e5e86ac
commit b782cd1c93
3 changed files with 7 additions and 4 deletions

View File

@ -142,8 +142,8 @@ Item {
status: model.onlineStatus
asset.color: Utils.colorForColorId(model.colorId)
asset.name: model.icon
asset.isImage: true
asset.imgIsIdenticon: false
asset.isImage: !!model.icon
asset.isLetterIdenticon: !model.icon
asset.width: 40
asset.height: 40
ringSettings.ringSpecModel: Utils.getColorHashAsJson(model.pubKey)

View File

@ -18,9 +18,11 @@ Item {
property var colorHash
property string image: ""
property bool keycardCreatedAccount: false
property StatusAssetSettings asset: StatusAssetSettings {
name: "add"
}
signal clicked()
width: parent.width
@ -52,7 +54,7 @@ Item {
Component {
id: addIcon
StatusRoundIcon {
asset.name: root.image
asset.name: root.asset.name
}
}

View File

@ -299,6 +299,7 @@ Item {
AccountMenuItemPanel {
label: qsTr("Add new user")
asset.name: "add"
onClicked: {
accountsPopup.close()
root.startupStore.doSecondaryAction()
@ -307,7 +308,7 @@ Item {
AccountMenuItemPanel {
label: qsTr("Add existing Status user")
image: "wallet"
asset.name: "wallet"
onClicked: {
accountsPopup.close()
root.startupStore.doTertiaryAction()