Add a placeholder message for the recents tab of the emoji picker

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-06-09 17:11:19 +02:00
parent e37746d924
commit e0041feca0

View file

@ -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 {}
}