status-desktop/ui/app/AppLayouts/Profile/controls/AccountShowcaseDelegate.qml

15 lines
511 B
QML
Raw Permalink Normal View History

import QtQuick 2.15
import StatusQ.Core.Theme 0.1
import utils 1.0
ShowcaseDelegate {
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
secondaryTitle: !!showcaseObj && !!showcaseObj.address ? showcaseObj.address : ""
hasEmoji: !!showcaseObj && !!showcaseObj.emoji
hasIcon: !hasEmoji
icon.name: hasEmoji ? showcaseObj.emoji : "filled-account"
icon.color: !!showcaseObj && showcaseObj.colorId ? Utils.getColorForId(showcaseObj.colorId) : Theme.palette.primaryColor3
}