mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
847eb2623f
Add sticker popup Add send sticker message Add ability to select sticker pack and show stickers for pack with scroll 1. Sticker history 2. Install sticker packs 3. Sticker market 1. Sticker packs are installed on app start up until installation of sticker pack functionality is added 2. Optimisations such as preloading images to be done so that sticker images are not downloaded each time.
38 lines
986 B
QML
38 lines
986 B
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "../../../../shared"
|
|
import "../components"
|
|
AddButton {
|
|
id: btnAdd
|
|
width: 36
|
|
height: 36
|
|
|
|
onClicked: {
|
|
let x = btnAdd.icon.x + btnAdd.icon.width / 2 - newChatMenu.width / 2
|
|
newChatMenu.popup(x, btnAdd.icon.height + 10)
|
|
}
|
|
|
|
PopupMenu {
|
|
id: newChatMenu
|
|
Action {
|
|
text: qsTr("Start new chat")
|
|
icon.source: "../../../img/new_chat.svg"
|
|
onTriggered: privateChatPopup.open()
|
|
}
|
|
Action {
|
|
text: qsTr("Start group chat")
|
|
icon.source: "../../../img/group_chat.svg"
|
|
onTriggered: groupChatPopup.open()
|
|
}
|
|
Action {
|
|
text: qsTr("Join public chat")
|
|
icon.source: "../../../img/public_chat.svg"
|
|
onTriggered: publicChatPopup.open()
|
|
}
|
|
onAboutToHide: {
|
|
btnAdd.icon.state = "default"
|
|
}
|
|
}
|
|
}
|