linphone-desktop/Linphone/view/Control/Popup/Loading/LoadingPopup.qml
Gaelle Braud db35d67a70 UI fixes:
- button style + icons

- try to fix mac text edition error

- disabled color considering lightness

- fix #LINQT-1524 avatar secured border

- fix #LINQT-1525 padding add participant form

- fix #LINQT-1537 more options menu in call

- fix #LINQT-1538 floating header in parameters

- fix #LINQT-1539 display name in conf info participants list

- fix #LINQT-1462 rm waiting time
2025-01-14 14:01:38 +01:00

46 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls.Basic
import Linphone
Popup {
id: mainItem
property string text
property bool cancelButtonVisible: false
property var callback
modal: true
closePolicy: Control.Popup.NoAutoClose
anchors.centerIn: parent
padding: 20 * DefaultStyle.dp
underlineColor: DefaultStyle.main1_500_main
radius: 15 * DefaultStyle.dp
// onAboutToShow: width = contentText.implicitWidth
contentItem: ColumnLayout {
spacing: 15 * DefaultStyle.dp
// width: childrenRect.width
// height: childrenRect.height
BusyIndicator{
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: 33 * DefaultStyle.dp
Layout.preferredHeight: 33 * DefaultStyle.dp
}
Text {
id: contentText
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.fillHeight: true
text: mainItem.text
font.pixelSize: 14 * DefaultStyle.dp
}
MediumButton {
visible: mainItem.cancelButtonVisible
Layout.alignment: Qt.AlignHCenter
text: qsTr("Annuler")
style: ButtonStyle.main
onClicked: {
if (callback) mainItem.callback()
mainItem.close()
}
}
}
}