mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-10 21:56:37 +00:00
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.
42 lines
800 B
QML
42 lines
800 B
QML
import QtQuick 2.13
|
|
import "../imports"
|
|
|
|
Rectangle {
|
|
id: root
|
|
property int size: 36
|
|
property color bg: Theme.blue
|
|
property url imgPath: ""
|
|
signal clicked
|
|
|
|
width: size
|
|
height: size
|
|
color: bg
|
|
radius: size / 2
|
|
|
|
Image {
|
|
id: roundedIconImage
|
|
width: 12
|
|
height: 12
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
fillMode: Image.PreserveAspectFit
|
|
source: imgPath
|
|
}
|
|
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
cursorShape: Qt.PointingHandCursor
|
|
onClicked: {
|
|
root.clicked()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;formeditorZoom:1.75}
|
|
}
|
|
##^##*/
|