mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Add a placeholder item for empty activity list
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
parent
51f31314e0
commit
bc08559655
1 changed files with 26 additions and 0 deletions
|
@ -77,5 +77,31 @@ ScrollView {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
id: placeholderColumn
|
||||
width: parent.width * 0.8
|
||||
anchors.centerIn: parent
|
||||
visible: activityList.count === 0
|
||||
spacing: Style.standardSpacing
|
||||
|
||||
Image {
|
||||
width: parent.width
|
||||
verticalAlignment: Image.AlignVCenter
|
||||
horizontalAlignment: Image.AlignHCenter
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: "image://svgimage-custom-color/activity.svg/" + Style.ncSecondaryTextColor
|
||||
}
|
||||
|
||||
Label {
|
||||
width: parent.width
|
||||
text: qsTr("No activities yet")
|
||||
color: Style.ncSecondaryTextColor
|
||||
font.bold: true
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue