diff options
author | Claudio Cambra <claudio.cambra@gmail.com> | 2022-09-20 19:24:14 +0300 |
---|---|---|
committer | Claudio Cambra <claudio.cambra@gmail.com> | 2022-09-22 13:17:21 +0300 |
commit | bc08559655181029af408eec7f28ee4b6ffba2a7 (patch) | |
tree | 7287716deeea5f643c039a67d5a4abb6c97ff71f /src | |
parent | 51f31314e0f98dfbd5179d987950b8c4ac1fe9e1 (diff) |
Add a placeholder item for empty activity list
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/tray/ActivityList.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/tray/ActivityList.qml b/src/gui/tray/ActivityList.qml index 6973633b7..a7c3363db 100644 --- a/src/gui/tray/ActivityList.qml +++ b/src/gui/tray/ActivityList.qml @@ -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 + } + } } } |