Add emoji picker.

This commit is contained in:
Black Hat
2018-08-11 12:42:13 +08:00
parent 4db5f3f355
commit 5cd4e7f18b
4 changed files with 1190 additions and 0 deletions

View File

@@ -385,12 +385,30 @@ Item {
}
ItemDelegate {
id: emojiButton
Layout.preferredWidth: height
Layout.fillHeight: true
contentItem: MaterialIcon { icon: "\ue24e" }
background: Rectangle { color: Material.theme == Material.Light ? "#eaeaea" : "#242424" }
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.open()
EmojiPicker {
id: emojiPicker
parent: ApplicationWindow.overlay
x: window.width - 370
y: window.height - 440
width: 360
height: 360
textArea: inputField
}
}
}
}