status-desktop/ui/shared/RoundedImage.qml
emizzle 847eb2623f feat: add sticker popup
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.
2020-06-25 10:27:26 -04:00

38 lines
799 B
QML

import QtQuick 2.12
import QtGraphicalEffects 1.0
Rectangle {
id: root;
signal clicked
property alias source: imgStickerPackThumb.source
radius: width / 2
width: 24
height: 24
// apply rounded corners mask
layer.enabled: true
layer.effect: OpacityMask {
maskSource: Rectangle {
x: root.x; y: root.y
width: root.width
height: root.height
radius: root.radius
}
}
Image {
id: imgStickerPackThumb
opacity: 1
smooth: false
anchors.fill: parent
source: "https://ipfs.infura.io/ipfs/" + thumbnail
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: root.clicked()
}
}
}