2020-07-15 21:04:14 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
StyledTextEdit {
|
|
|
|
id: chatName
|
2020-07-20 17:34:20 +00:00
|
|
|
visible: isMessage && authorCurrentMsg != authorPrevMsg
|
2020-07-15 21:04:14 +00:00
|
|
|
height: this.visible ? 18 : 0
|
2020-07-16 15:20:29 +00:00
|
|
|
//% "You"
|
2020-08-07 19:26:51 +00:00
|
|
|
text: !isCurrentUser ? Utils.removeStatusEns(userName) : qsTrId("You")
|
|
|
|
color: (userName.startsWith("@") || isCurrentUser) ? Style.current.blue : Style.current.textColor
|
2020-07-15 21:04:14 +00:00
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 14
|
|
|
|
readOnly: true
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
selectByMouse: true
|
|
|
|
MouseArea {
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
2020-08-03 17:17:03 +00:00
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
2020-07-15 21:04:14 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: {
|
2020-08-03 17:17:03 +00:00
|
|
|
clickMessage(true)
|
2020-07-15 21:04:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|