mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
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:
parent
e37746d924
commit
e0041feca0
1 changed files with 11 additions and 0 deletions
|
@ -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 {}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue