linux.x86.linphone/Linphone/view/Item/Call/OngoingCallRightPanel.qml
2023-12-11 10:56:13 +00:00

61 lines
1.2 KiB
QML

import QtQuick 2.7
import QtQuick.Layouts
import QtQuick.Controls as Control
import Linphone
Control.Page {
id: mainItem
property alias headerContent: header.children
background: Rectangle {
width: mainItem.width
height: mainItem.height
color: DefaultStyle.grey_100
radius: 15 * DefaultStyle.dp
}
header: Control.Control {
id: pageHeader
width: mainItem.width
background: Rectangle {
id: headerBackground
width: pageHeader.width
height: pageHeader.height
color: DefaultStyle.grey_0
radius: 15 * DefaultStyle.dp
Rectangle {
y: pageHeader.height/2
height: pageHeader.height/2
width: pageHeader.width
}
}
contentItem: RowLayout {
width: pageHeader.width
height: pageHeader.height
anchors.leftMargin: 10 * DefaultStyle.dp
anchors.left: pageHeader.left
Item {
id: header
}
Item {
Layout.fillWidth: true
}
Button {
id: closeButton
Layout.alignment: Qt.AlignRight
background: Item {
visible: false
}
contentItem: Image {
anchors.centerIn: closeButton
source: AppIcons.closeX
width: 10 * DefaultStyle.dp
sourceSize.width: 10 * DefaultStyle.dp
fillMode: Image.PreserveAspectFit
}
onClicked: mainItem.visible = false
}
}
}
}