mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
ba48b266a9
The sticker loading UI was removed when the StatusChatInput and friends were added in. This PR re-adds the sticker loading UI introduced in PR# 955 (https://github.com/status-im/nim-status-client/pull/955).
36 lines
853 B
QML
36 lines
853 B
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.3
|
|
import QtGraphicalEffects 1.0
|
|
import "../../imports"
|
|
import "../../shared"
|
|
|
|
GridView {
|
|
id: root
|
|
visible: count > 0
|
|
anchors.fill: parent
|
|
cellWidth: 88
|
|
cellHeight: 88
|
|
model: stickerList
|
|
focus: true
|
|
clip: true
|
|
signal stickerClicked(string hash, int packId)
|
|
delegate: Item {
|
|
width: stickerGrid.cellWidth
|
|
height: stickerGrid.cellHeight
|
|
Column {
|
|
anchors.fill: parent
|
|
anchors.topMargin: 4
|
|
anchors.leftMargin: 4
|
|
ImageLoader {
|
|
width: 80
|
|
height: 80
|
|
source: "https://ipfs.infura.io/ipfs/" + url
|
|
onClicked: {
|
|
root.stickerClicked(hash, packId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|