mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
7183621369
- implements the UI component to manage regular & community tokens (drag'n'drop or context menu to reorder, show/hide, group by community) - implements a custom C++ QAIM model which acts as a fake proxy model for the above QML panel (internally it does all the sorting/grouping/hiding and preserves the custom sort order) - adds and corrects support for cascading submenus in StatusAction, and StatusMenu[Item] - adds support for mirrored (horizontally flipped) StatusSwitch - adds a new SortOrderComboBox.qml (this was being used in the first Figma version, can be ignored now, will be used by the main wallet view later) - some minor fixes and cleanups in the used components Iterates #12377 Closes #12587
14 lines
493 B
QML
14 lines
493 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
|
|
assetBgColor: !!showcaseObj && !!showcaseObj.backgroundColor ? showcaseObj.backgroundColor : "transparent"
|
|
}
|