mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 16:59:21 +00:00
fix(ui/modules/Linphone/Chat/OutgoingMessage): remove message status
This commit is contained in:
parent
0793a7ecc1
commit
a0e92affcd
5 changed files with 19 additions and 60 deletions
|
|
@ -809,21 +809,6 @@ your friend's SIP address or username.</translation>
|
|||
<translation>Select you active account</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OutgoingMessage</name>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation>Error</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Read</source>
|
||||
<translation>Read</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Delivered</source>
|
||||
<translation>Delivered</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Presence</name>
|
||||
<message>
|
||||
|
|
|
|||
|
|
@ -808,21 +808,6 @@ un chat ou ajouter un contact.</translation>
|
|||
<translation>Sélectionner votre compte principal</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OutgoingMessage</name>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation>Erreur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Read</source>
|
||||
<translation>Lu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Delivered</source>
|
||||
<translation>Délivré</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Presence</name>
|
||||
<message>
|
||||
|
|
|
|||
|
|
@ -40,6 +40,4 @@ QtObject {
|
|||
property color z: '#17A81A'
|
||||
|
||||
property color error: '#FF0000'
|
||||
property color read: '#18A7AF'
|
||||
property color delivered: '#A7A7A7'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ Item {
|
|||
Component {
|
||||
id: icon
|
||||
|
||||
RowLayout {
|
||||
Icon {
|
||||
property bool isNotDelivered: Utils.includes([
|
||||
ChatModel.MessageStatusFileTransferError,
|
||||
ChatModel.MessageStatusIdle,
|
||||
|
|
@ -40,33 +40,16 @@ Item {
|
|||
ChatModel.MessageStatusNotDelivered
|
||||
], $chatEntry.status)
|
||||
|
||||
property bool isRead: Utils.includes([
|
||||
ChatModel.MessageStatusDisplayed
|
||||
], $chatEntry.status)
|
||||
property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
|
||||
|
||||
Text {
|
||||
text: isNotDelivered ? qsTr("Error") : isRead ? qsTr("Read") : qsTr("Delivered")
|
||||
color: isNotDelivered ? Colors.error : isRead ? Colors.read : Colors.delivered
|
||||
font.pointSize: ChatStyle.entry.message.outgoing.fontSize
|
||||
}
|
||||
icon: isNotDelivered
|
||||
? 'chat_error'
|
||||
: (isRead ? 'chat_read' : 'chat_delivered')
|
||||
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
|
||||
|
||||
Icon {
|
||||
icon: isNotDelivered ? 'chat_error' : isRead ? 'chat_read' : 'chat_delivered'
|
||||
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: isNotDelivered && proxyModel.resendMessage(index)
|
||||
}
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
height: ChatStyle.entry.lineHeight
|
||||
icon: 'delete'
|
||||
iconSize: ChatStyle.entry.deleteIconSize
|
||||
visible: isHoverEntry()
|
||||
|
||||
onClicked: removeEntry()
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: isNotDelivered && proxyModel.resendMessage(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -84,6 +67,15 @@ Item {
|
|||
? indicator
|
||||
: icon
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
height: ChatStyle.entry.lineHeight
|
||||
icon: 'delete'
|
||||
iconSize: ChatStyle.entry.deleteIconSize
|
||||
visible: isHoverEntry()
|
||||
|
||||
onClicked: removeEntry()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,8 +96,7 @@ QtObject {
|
|||
|
||||
property QtObject outgoing: QtObject {
|
||||
property color backgroundColor: Colors.e
|
||||
property int sendIconSize: 10
|
||||
property int fontSize: 8
|
||||
property int sendIconSize: 12
|
||||
|
||||
property QtObject text: QtObject {
|
||||
property color color: Colors.r
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue