status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UserImage.qml

33 lines
792 B
QML
Raw Normal View History

import QtQuick 2.3
import "../../../../../shared"
import "../../../../../imports"
Rectangle {
id: chatImage
2020-07-20 17:34:20 +00:00
visible: isMessage && authorCurrentMsg != authorPrevMsg
width: identiconImage.width
height: identiconImage.height
border.width: 1
border.color: Style.current.border
radius: 50
Image {
id: identiconImage
width: 36
height: chatImage.visible ? 36 : 0
fillMode: Image.PreserveAspectFit
source: !isCurrentUser ? identicon : profileModel.profile.identicon
mipmap: true
smooth: false
antialiasing: true
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
clickMessage()
}
}
}
}