mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 03:28:52 +00:00
- It updates `ProfileShowcasePanel` with new drop area design adding shadows, changing drop areas design and sizes. - It adjusts `ShowcaseDelegate` according to design, ie: heigh and background colour on dragActive. Closes #13509
54 lines
1.2 KiB
QML
54 lines
1.2 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtQml 2.15
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import utils 1.0
|
|
|
|
StatusListView {
|
|
id: root
|
|
|
|
property string placeholderText
|
|
property int footerHeight: 44
|
|
property bool footerContentVisible: true
|
|
property Component additionalFooterComponent
|
|
|
|
// TO BE REMOVE: #13498
|
|
property bool empty: root.model && root.count === 0
|
|
|
|
ScrollBar.vertical: null
|
|
|
|
footer: ColumnLayout {
|
|
width: root.width
|
|
|
|
Item {
|
|
Layout.preferredHeight: root.footerHeight
|
|
Layout.fillWidth: true
|
|
|
|
visible: root.empty// TO BE REPLACE root.empty in (#13498): root.empty = root.model && root.count === 0
|
|
|
|
ShapeRectangle {
|
|
id: shapeRectangle
|
|
|
|
anchors.fill: parent
|
|
anchors.margins: 1
|
|
|
|
visible: root.footerContentVisible
|
|
text: root.placeholderText
|
|
}
|
|
}
|
|
|
|
Loader {
|
|
Layout.preferredWidth: root.width
|
|
|
|
sourceComponent: root.additionalFooterComponent
|
|
}
|
|
}
|
|
|
|
displaced: Transition {
|
|
NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad }
|
|
}
|
|
}
|