mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
31be818e0e
... to help align with original design intent - dropped date breaks before msg groups - show full date/timestamp in the msg header - floating "Unpin" button on mouse hover - no padding/spacing between messages - some smaller code cleanups and dead code removals Fixes #9396
29 lines
627 B
QML
29 lines
627 B
QML
import QtQuick 2.14
|
|
|
|
import shared.panels 1.0
|
|
import utils 1.0
|
|
|
|
Loader {
|
|
property color color
|
|
property int contentType: -1
|
|
property string stickerData: ""
|
|
property int imageHeight: 140
|
|
property int imageWidth: 140
|
|
|
|
signal stickerLoaded()
|
|
|
|
id: root
|
|
active: contentType === Constants.messageContentType.stickerType
|
|
|
|
sourceComponent: Component {
|
|
ImageLoader {
|
|
color: root.color
|
|
onLoaded: root.stickerLoaded()
|
|
|
|
width: imageWidth
|
|
height: this.visible ? imageHeight : 0
|
|
source: this.visible ? stickerData : ""
|
|
}
|
|
}
|
|
}
|