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:
parent
7e0e0e916e
commit
bf6758b68e
|
@ -22,6 +22,7 @@ StatusRoundedComponent {
|
|||
|
||||
isLoading: image.isLoading
|
||||
isError: image.isError
|
||||
border.width: 0
|
||||
|
||||
StatusImage {
|
||||
id: image
|
||||
|
|
|
@ -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) : ""
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ Rectangle {
|
|||
smooth: false
|
||||
radius: root.radius
|
||||
anchors.fill: parent
|
||||
source: thumbnail
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue