mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-28 15:26:10 +00:00
a8eed304c0
Implement the UI part of Profile/Settings/Showcase: - Communities/Accounts/Collectibles/Assets tabs - drag and drop of items between "hidden" and "in showcase" sections - ability to set individual items' visibility - persistency (showcase saved across restarts), not exposed yet due to missing backend API Closes #9936
14 lines
488 B
QML
14 lines
488 B
QML
import QtQuick 2.15
|
|
|
|
import utils 1.0
|
|
|
|
ShowcaseDelegate {
|
|
title: !!showcaseObj ? `${showcaseObj.name}` || `#${showcaseObj.id}` : ""
|
|
secondaryTitle: !!showcaseObj && !!showcaseObj.collectionName ? showcaseObj.collectionName : ""
|
|
hasImage: !!showcaseObj && !!showcaseObj.imageUrl
|
|
|
|
icon.source: hasImage ? showcaseObj.imageUrl : ""
|
|
bgRadius: Style.current.radius
|
|
bgColor: !!showcaseObj && !!showcaseObj.backgroundColor ? showcaseObj.backgroundColor : "transparent"
|
|
}
|