From e0041feca032830320d26b569d3db9d0c8408a49 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 9 Jun 2022 17:11:19 +0200 Subject: [PATCH] Add a placeholder message for the recents tab of the emoji picker Signed-off-by: Claudio Cambra --- src/gui/EmojiPicker.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gui/EmojiPicker.qml b/src/gui/EmojiPicker.qml index 0e5c6ec70..8a9cc920e 100644 --- a/src/gui/EmojiPicker.qml +++ b/src/gui/EmojiPicker.qml @@ -87,6 +87,7 @@ ColumnLayout { } GridView { + id: emojiView Layout.fillWidth: true Layout.fillHeight: true Layout.preferredHeight: metrics.height * 8 @@ -125,6 +126,16 @@ ColumnLayout { } } + Label { + id: placeholderMessage + anchors.centerIn: parent + text: qsTr("No recent emojis") + color: Style.ncSecondaryTextColor + wrapMode: Text.Wrap + font.bold: true + visible: emojiView.count === 0 + } + ScrollBar.vertical: ScrollBar {} }