mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 01:50:47 +03:00
27 lines
609 B
QML
27 lines
609 B
QML
|
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
|
||
|
|
||
|
image: ":/icons/icons/ui/smile.png"
|
||
|
id: emojiButton
|
||
|
onClicked: emojiPopup.open()
|
||
|
|
||
|
EmojiPicker {
|
||
|
id: emojiPopup
|
||
|
x: Math.round((emojiButton.width - width) / 2)
|
||
|
y: emojiButton.height
|
||
|
width: 7 * 52
|
||
|
height: 6 * 52
|
||
|
colors: emojiButton.colors
|
||
|
model: EmojiProxyModel {
|
||
|
category: Emoji.Category.People
|
||
|
sourceModel: EmojiModel {}
|
||
|
}
|
||
|
}
|
||
|
}
|