mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 00:48:08 +00:00
Set dummy conference info as a null core. Load new items in case of chaning dates. Allow gui to load until current date. Fix video direction on screensharing. Update SDK for tone indication on meetings. Clean
91 lines
2.6 KiB
QML
91 lines
2.6 KiB
QML
import QtQuick
|
|
import QtQuick.Effects
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls.Basic as Control
|
|
import Linphone
|
|
import UtilsCpp
|
|
import SettingsCpp
|
|
|
|
ColumnLayout {
|
|
id: mainItem
|
|
spacing: 30 * DefaultStyle.dp
|
|
|
|
property FriendGui contact
|
|
|
|
property alias button: rightButton
|
|
property alias content: detailLayout.data
|
|
property alias bannerContent: bannerLayout.data
|
|
property alias secondLineContent: verticalLayoutSecondLine.data
|
|
property int minimumWidthForSwitchintToRowLayout: 756 * DefaultStyle.dp
|
|
property var useVerticalLayout: width < minimumWidthForSwitchintToRowLayout * DefaultStyle.dp
|
|
|
|
GridLayout {
|
|
Layout.leftMargin: 64 * DefaultStyle.dp
|
|
Layout.rightMargin: 64 * DefaultStyle.dp
|
|
Layout.topMargin: 56 * DefaultStyle.dp
|
|
Layout.fillWidth: true
|
|
columns: mainItem.useVerticalLayout ? 1 : children.length
|
|
rows: 1
|
|
columnSpacing: 49 * DefaultStyle.dp
|
|
rowSpacing: 27 * DefaultStyle.dp
|
|
|
|
RowLayout {
|
|
Layout.preferredWidth: 341 * DefaultStyle.dp
|
|
Control.Control {
|
|
// Layout.preferredWidth: 734 * DefaultStyle.dp
|
|
Layout.fillWidth: true
|
|
width: 734 * DefaultStyle.dp
|
|
height: 100 * DefaultStyle.dp
|
|
rightPadding: 21 * DefaultStyle.dp
|
|
background: GradientRectangle {
|
|
anchors.fill: parent
|
|
anchors.leftMargin: avatar.width / 2
|
|
radius: 15 * DefaultStyle.dp
|
|
borderGradient: Gradient {
|
|
orientation: Gradient.Horizontal
|
|
GradientStop { position: 0.0; color: DefaultStyle.grey_100 }
|
|
GradientStop { position: 1.0; color: DefaultStyle.main2_200 }
|
|
}
|
|
gradient: Gradient {
|
|
orientation: Gradient.Horizontal
|
|
GradientStop { position: 0.0; color: DefaultStyle.grey_0 }
|
|
GradientStop { position: 1.0; color: DefaultStyle.grey_100 }
|
|
}
|
|
}
|
|
contentItem: RowLayout {
|
|
id: bannerLayout
|
|
spacing: 32 * DefaultStyle.dp
|
|
Avatar {
|
|
id: avatar
|
|
contact: mainItem.contact
|
|
Layout.preferredWidth: 100 * DefaultStyle.dp
|
|
Layout.preferredHeight: 100 * DefaultStyle.dp
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Item {
|
|
id: verticalLayoutSecondLine
|
|
visible: mainItem.useVerticalLayout
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.preferredWidth: childrenRect.width
|
|
Layout.preferredHeight: childrenRect.height
|
|
}
|
|
Button {
|
|
id: rightButton
|
|
Layout.alignment: Qt.AlignHCenter
|
|
width: childrenRect.width
|
|
height: childrenRect.height
|
|
}
|
|
}
|
|
StackLayout {
|
|
id: detailLayout
|
|
Layout.alignment: Qt.AlignCenter
|
|
Layout.topMargin: mainItem.useVerticalLayout ? 0 : 30 * DefaultStyle.dp
|
|
Layout.leftMargin: 64 * DefaultStyle.dp
|
|
Layout.rightMargin: 64 * DefaultStyle.dp
|
|
Layout.bottomMargin: 53 * DefaultStyle.dp
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
}
|
|
}
|