mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 00:56:39 +00:00
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
|
isLoading: image.isLoading
|
||||||
isError: image.isError
|
isError: image.isError
|
||||||
|
border.width: 0
|
||||||
|
|
||||||
StatusImage {
|
StatusImage {
|
||||||
id: image
|
id: image
|
||||||
|
@ -6,7 +6,7 @@ import utils 1.0
|
|||||||
|
|
||||||
ShowcaseDelegate {
|
ShowcaseDelegate {
|
||||||
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
|
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
|
||||||
secondaryTitle: !!showcaseObj ? LocaleUtils.currencyAmountToLocaleString(showcaseObj.enabledNetworkBalance) : "0"
|
secondaryTitle: !!showcaseObj ? LocaleUtils.currencyAmountToLocaleString(showcaseObj.enabledNetworkBalance) : Qt.locale().zeroDigit
|
||||||
hasImage: true
|
hasImage: true
|
||||||
icon.source: !!showcaseObj ? Constants.tokenIcon(showcaseObj.symbol) : ""
|
icon.source: !!showcaseObj ? Constants.tokenIcon(showcaseObj.symbol) : ""
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,9 @@ import QtQuick 2.15
|
|||||||
ShowcaseDelegate {
|
ShowcaseDelegate {
|
||||||
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
|
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
|
||||||
secondaryTitle: !!showcaseObj && !!showcaseObj.amISectionAdmin ? qsTr("Admin") : qsTr("Member")
|
secondaryTitle: !!showcaseObj && !!showcaseObj.amISectionAdmin ? qsTr("Admin") : qsTr("Member")
|
||||||
hasImage: !!showcaseObj ? showcaseObj.image : false
|
hasImage: !!showcaseObj && !!showcaseObj.image
|
||||||
|
|
||||||
icon.name: !!showcaseObj ? showcaseObj.name : ""
|
icon.name: !!showcaseObj ? showcaseObj.name : ""
|
||||||
icon.source: !!showcaseObj ? showcaseObj.image : ""
|
icon.source: !!showcaseObj ? showcaseObj.image : ""
|
||||||
icon.color: !!showcaseObj ? showcaseObj.color : ""
|
icon.color: !!showcaseObj ? showcaseObj.color : "transparent"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,6 @@ Rectangle {
|
|||||||
smooth: false
|
smooth: false
|
||||||
radius: root.radius
|
radius: root.radius
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: thumbnail
|
|
||||||
onClicked: root.clicked()
|
onClicked: root.clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user