fix(ShowcaseDelegate): community icon is not rounded

- this needs proper bg color (transparent) and a `border.width: 0` to
work properly with the

Fixes #10754
This commit is contained in:
Lukáš Tinkl 2023-05-25 13:44:08 +02:00 committed by Lukáš Tinkl
parent 7e0e0e916e
commit bf6758b68e
4 changed files with 4 additions and 4 deletions

View File

@ -22,6 +22,7 @@ StatusRoundedComponent {
isLoading: image.isLoading
isError: image.isError
border.width: 0
StatusImage {
id: image

View File

@ -6,7 +6,7 @@ import utils 1.0
ShowcaseDelegate {
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
secondaryTitle: !!showcaseObj ? LocaleUtils.currencyAmountToLocaleString(showcaseObj.enabledNetworkBalance) : "0"
secondaryTitle: !!showcaseObj ? LocaleUtils.currencyAmountToLocaleString(showcaseObj.enabledNetworkBalance) : Qt.locale().zeroDigit
hasImage: true
icon.source: !!showcaseObj ? Constants.tokenIcon(showcaseObj.symbol) : ""
}

View File

@ -3,9 +3,9 @@ import QtQuick 2.15
ShowcaseDelegate {
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
secondaryTitle: !!showcaseObj && !!showcaseObj.amISectionAdmin ? qsTr("Admin") : qsTr("Member")
hasImage: !!showcaseObj ? showcaseObj.image : false
hasImage: !!showcaseObj && !!showcaseObj.image
icon.name: !!showcaseObj ? showcaseObj.name : ""
icon.source: !!showcaseObj ? showcaseObj.image : ""
icon.color: !!showcaseObj ? showcaseObj.color : ""
icon.color: !!showcaseObj ? showcaseObj.color : "transparent"
}

View File

@ -38,7 +38,6 @@ Rectangle {
smooth: false
radius: root.radius
anchors.fill: parent
source: thumbnail
onClicked: root.clicked()
}
}