mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
7f40ae0f57
- `NormalMessageView` component is removed since we work with `CompactMessageView` and it's the only and default message component in the app. - `useCompactMode` property removed from local settings since it's not in use as well and corresponding code is updated accordingly
45 lines
1.2 KiB
QML
45 lines
1.2 KiB
QML
import QtQuick 2.3
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.3
|
|
import Qt.labs.platform 1.1
|
|
|
|
import utils 1.0
|
|
import shared.controls 1.0
|
|
import shared.panels 1.0
|
|
|
|
Item {
|
|
id: replyComponent
|
|
|
|
property int replyMessageIndex: wrapper.replyMessageIndex
|
|
property string repliedMessageContent: wrapper.repliedMessageContent
|
|
|
|
onReplyMessageIndexChanged: {
|
|
wrapper.visible = replyMessageIndex > -1
|
|
}
|
|
|
|
SVGImage {
|
|
id: replyIcon
|
|
width: 16
|
|
height: 16
|
|
source: Style.svg("reply-small-arrow")
|
|
anchors.left: parent.left
|
|
anchors.verticalCenter:parent.verticalCenter
|
|
}
|
|
|
|
StyledTextEdit {
|
|
text: Utils.getReplyMessageStyle(Emoji.parse(Utils.linkifyAndXSS(repliedMessageContent), Emoji.size.small), false)
|
|
textFormat: Text.RichText
|
|
height: 18
|
|
width: implicitWidth > 300 ? 300 : implicitWidth
|
|
clip: true
|
|
anchors.left: replyIcon.right
|
|
anchors.leftMargin: 4
|
|
color: Style.current.secondaryText
|
|
font.weight: Font.Medium
|
|
font.pixelSize: 13
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
selectByMouse: true
|
|
readOnly: true
|
|
}
|
|
}
|