mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 21:28:07 +00:00
- Split content type to be filtered by proxy lists. - Add a message in notification when receiving a conference invitation. - Change chat bubbles colors to match mobile application. - Change date display on messages to remove sections. It allows to be more coherent when sorting messages. - Change Chat Layout : outgoing messages to right, incoming messages to left. - Change bubble design to be squared when grouped. - Group messages on 1 second away from previous (and same sender). - Add a background color with radius to files in reply messages. - Make color corners on reply. - Fix filename to 2 lines in file download icon. - Add a background color on conference invitations. - Change conference title from bold to normal on invitations. - Rework chat message content layout to be used with grids and lists : files are now displayed in grid. - Remove cyclic dependencies with reply design (which was recursivly linked with ChatContent). - Fix center layouts that were not bind to the correct one. - Align pictures to center. - Fix hidden admin usernames in participant view.
66 lines
2 KiB
QML
66 lines
2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Clipboard 1.0
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
|
|
import Common.Styles 1.0
|
|
import Linphone.Styles 1.0
|
|
import TextToSpeech 1.0
|
|
import Utils 1.0
|
|
import Units 1.0
|
|
import UtilsCpp 1.0
|
|
import LinphoneEnums 1.0
|
|
|
|
import ColorsList 1.0
|
|
|
|
// =============================================================================
|
|
// Full content display with reply and forward. These modules need to be splitted because of cyclic dependencies.
|
|
// See ChatContent
|
|
|
|
Column{
|
|
id: mainItem
|
|
property ChatMessageModel chatMessageModel: null
|
|
property int availableWidth //const
|
|
|
|
// Readonly
|
|
property int bestWidth: Math.min(availableWidth, Math.max(forwardMessage.fitWidth, replyMessage.fitWidth, chatContent.bestWidth ))
|
|
property alias filesBestWidth: chatContent.filesBestWidth
|
|
property alias filesCount: chatContent.filesCount
|
|
property alias textsBestWidth: chatContent.textsBestWidth
|
|
property alias textsCount: chatContent.textsCount
|
|
|
|
signal isFileHoveringChanged(bool isFileHovering)
|
|
signal lastTextSelectedChanged(string lastTextSelected)
|
|
signal rightClicked()
|
|
signal conferenceIcsCopied()
|
|
signal goToMessage(var message)
|
|
|
|
spacing: 0
|
|
ChatForwardMessage{
|
|
id: forwardMessage
|
|
mainChatMessageModel: mainItem.chatMessageModel
|
|
visible: mainChatMessageModel && mainChatMessageModel.isForward
|
|
availableWidth: mainItem.availableWidth
|
|
}
|
|
ChatReplyMessage{
|
|
id: replyMessage
|
|
z: 1
|
|
mainChatMessageModel: mainItem.chatMessageModel
|
|
visible: mainChatMessageModel && mainChatMessageModel.isReply
|
|
availableWidth: mainItem.availableWidth
|
|
onGoToMessage: mainItem.goToMessage(message)
|
|
}
|
|
ChatContent{
|
|
id: chatContent
|
|
chatMessageModel: mainItem.chatMessageModel
|
|
availableWidth: mainItem.availableWidth
|
|
width: parent.width
|
|
|
|
onIsFileHoveringChanged: mainItem.isFileHoveringChanged(isFileHovering)
|
|
onLastTextSelectedChanged: mainItem.lastTextSelectedChanged(lastTextSelected)
|
|
onRightClicked: mainItem.rightClicked()
|
|
onConferenceIcsCopied: mainItem.conferenceIcsCopied()
|
|
}
|
|
}
|