matrixion/resources/qml/emoji/EmojiButton.qml

16 lines
355 B
QML
Raw Normal View History

import QtQuick 2.10
import QtQuick.Controls 2.1
import im.nheko 1.0
import im.nheko.EmojiModel 1.0
import "../"
ImageButton {
property var colors: currentActivePalette
2020-05-14 03:19:15 +03:00
property var emojiPicker
image: ":/icons/icons/ui/smile.png"
id: emojiButton
2020-05-14 03:19:15 +03:00
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton)
}