mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Show a not found message when the user searches for nonexistent emoji
This commit is contained in:
parent
1cb4a31e09
commit
7f45a7b45c
1 changed files with 16 additions and 0 deletions
|
@ -204,6 +204,22 @@ Rectangle {
|
||||||
parent: grid
|
parent: grid
|
||||||
anchors.rightMargin: -grid.anchors.rightMargin + 2
|
anchors.rightMargin: -grid.anchors.rightMargin + 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HifiStylesUit.GraphikRegular {
|
||||||
|
readonly property var cantFindEmojiList: ["😣", "😭", "😖", "😢", "🤔"]
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (visible) {
|
||||||
|
text = "We couldn't find that emoji " + cantFindEmojiList[Math.floor(Math.random() * cantFindEmojiList.length)]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
visible: grid.model.count === 0
|
||||||
|
anchors.fill: parent
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
color: simplifiedUI.colors.text.darkGrey
|
||||||
|
size: 22
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue