mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
6090d00251
This reverts commit 74e32dd96b
.
18 lines
472 B
QML
18 lines
472 B
QML
import "../"
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.1
|
|
import im.nheko 1.0
|
|
import im.nheko.EmojiModel 1.0
|
|
|
|
ImageButton {
|
|
id: emojiButton
|
|
|
|
property var colors: currentActivePalette
|
|
property var emojiPicker
|
|
property string event_id
|
|
|
|
image: ":/icons/icons/ui/smile.png"
|
|
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, function(emoji) {
|
|
TimelineManager.queueReactionMessage(event_id, emoji);
|
|
})
|
|
}
|