mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix #LINQT-1904 last message imdn
This commit is contained in:
parent
54eac3ddc1
commit
5e09348c3d
3 changed files with 34 additions and 16 deletions
|
|
@ -9,9 +9,6 @@ Button {
|
|||
textSize: Typography.p1s.pixelSize
|
||||
textWeight: Typography.p1s.weight
|
||||
padding: Math.round(16 * DefaultStyle.dp)
|
||||
// bottomPadding: Math.round(16 * DefaultStyle.dp)
|
||||
// leftPadding: Math.round(16 * DefaultStyle.dp)
|
||||
// rightPadding: Math.round(16 * DefaultStyle.dp)
|
||||
// icon.width: width
|
||||
// icon.height: width
|
||||
radius: width * 2
|
||||
|
|
|
|||
|
|
@ -322,8 +322,8 @@ ListView {
|
|||
unread: modelData?.core.unreadMessagesCount || false
|
||||
}
|
||||
EffectImage {
|
||||
visible: modelData?.core.lastMessage && modelData?.core.lastMessageState !== LinphoneEnums.ChatMessageState.StateIdle || false
|
||||
&& !modelData.core.lastMessage.core.isRemoteMessage
|
||||
visible: modelData?.core.lastMessage && modelData?.core.lastMessageState !== LinphoneEnums.ChatMessageState.StateIdle
|
||||
&& !modelData.core.lastMessage.core.isRemoteMessage || false
|
||||
Layout.preferredWidth: visible ? 14 * DefaultStyle.dp : 0
|
||||
Layout.preferredHeight: 14 * DefaultStyle.dp
|
||||
colorizationColor: DefaultStyle.main1_500_main
|
||||
|
|
|
|||
|
|
@ -123,15 +123,30 @@ AbstractMainPage {
|
|||
]
|
||||
}
|
||||
|
||||
Item {
|
||||
Control.ScrollView {
|
||||
id: overridenRightPanel
|
||||
width: Math.round((393 + 10) * DefaultStyle.dp)
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.topMargin: Math.round(58 * DefaultStyle.dp)
|
||||
anchors.bottomMargin: Math.round(30 * DefaultStyle.dp)
|
||||
height: parent.height - anchors.topMargin
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
contentHeight: overridenRightPanelStackView.currentItem.childrenRect.height
|
||||
contentWidth: width
|
||||
clip: true
|
||||
Control.ScrollBar.vertical: ScrollBar {
|
||||
visible: overridenRightPanel.contentHeight > overridenRightPanel.height
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
}
|
||||
Control.StackView {
|
||||
id: overridenRightPanelStackView
|
||||
anchors.fill: parent
|
||||
anchors.rightMargin: Math.round(10 * DefaultStyle.dp)
|
||||
height: currentItem ? currentItem.height : 0
|
||||
width: Math.round(393 * DefaultStyle.dp)
|
||||
height: parent.height
|
||||
anchors.top: parent.top
|
||||
anchors.centerIn: parent
|
||||
anchors.horizontalCenter: parent.horiztonalCenter
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -152,6 +167,8 @@ AbstractMainPage {
|
|||
spacing: 0
|
||||
RowLayout {
|
||||
Layout.rightMargin: Math.round(38 * DefaultStyle.dp)
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.fillWidth: true
|
||||
spacing: 0
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
|
|
@ -373,10 +390,9 @@ AbstractMainPage {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Math.round(58 * DefaultStyle.dp)
|
||||
spacing: 0
|
||||
Section {
|
||||
Layout.preferredWidth: Math.round(393 * DefaultStyle.dp)
|
||||
Layout.fillWidth: true
|
||||
content: RowLayout {
|
||||
spacing: Math.round(16 * DefaultStyle.dp)
|
||||
Layout.preferredWidth: overridenRightPanelStackView.width
|
||||
|
|
@ -574,13 +590,12 @@ AbstractMainPage {
|
|||
id: meetingDetail
|
||||
FocusScope{
|
||||
width: overridenRightPanelStackView.width
|
||||
height: meetingDetailsLayout.implicitHeight
|
||||
height: meetingDetailsLayout.childrenRect.height
|
||||
ColumnLayout {
|
||||
id: meetingDetailsLayout
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Math.round(58 * DefaultStyle.dp)
|
||||
visible: mainItem.selectedConference
|
||||
spacing: Math.round(25 * DefaultStyle.dp)
|
||||
Section {
|
||||
|
|
@ -616,6 +631,7 @@ AbstractMainPage {
|
|||
KeyNavigation.right: deletePopup
|
||||
KeyNavigation.up: joinButton
|
||||
KeyNavigation.down: shareNetworkButton
|
||||
Layout.preferredWidth: Math.round(24 * DefaultStyle.dp)
|
||||
onClicked: mainItem.editConference(mainItem.selectedConference)
|
||||
}
|
||||
PopupButton {
|
||||
|
|
@ -701,6 +717,7 @@ AbstractMainPage {
|
|||
KeyNavigation.right: linkButton
|
||||
KeyNavigation.up: deletePopup
|
||||
KeyNavigation.down: joinButton
|
||||
Layout.preferredWidth: Math.round(24 * DefaultStyle.dp)
|
||||
onClicked: {
|
||||
var success = UtilsCpp.copyToClipboard(mainItem.selectedConference.core.uri)
|
||||
if (success) UtilsCpp.showInformationPopup(qsTr("saved"),
|
||||
|
|
@ -739,6 +756,7 @@ AbstractMainPage {
|
|||
colorizationColor: DefaultStyle.main2_600
|
||||
}
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
//: "Fuseau horaire"
|
||||
text: "%1: %2".arg(qsTr("meeting_schedule_timezone_title")).arg(mainItem.selectedConference && mainItem.selectedConference.core ? (mainItem.selectedConference.core.timeZoneModel.displayName + ", " + mainItem.selectedConference.core.timeZoneModel.countryName) : "")
|
||||
font {
|
||||
|
|
@ -795,6 +813,7 @@ AbstractMainPage {
|
|||
}
|
||||
Section {
|
||||
visible: participantList.count > 0
|
||||
Layout.fillWidth: true
|
||||
content: RowLayout {
|
||||
Layout.preferredHeight: participantList.height
|
||||
width: Math.round(393 * DefaultStyle.dp)
|
||||
|
|
@ -851,6 +870,8 @@ AbstractMainPage {
|
|||
id: joinButton
|
||||
visible: mainItem.selectedConference && mainItem.selectedConference.core?.state !== LinphoneEnums.ConferenceInfoState.Cancelled
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: implicitHeight
|
||||
Layout.bottomMargin: Math.round(5 * DefaultStyle.dp)
|
||||
//: "Rejoindre la réunion"
|
||||
text: qsTr("meeting_info_join_title")
|
||||
focus: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue