From: Claudio Cambra Date: Thu, 9 Jun 2022 15:11:19 +0000 (+0200) Subject: Add a placeholder message for the recents tab of the emoji picker X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~110^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e0041feca032830320d26b569d3db9d0c8408a49;p=nextcloud-desktop.git Add a placeholder message for the recents tab of the emoji picker Signed-off-by: Claudio Cambra --- 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 {} }