linphone-desktop/Linphone/view/Control/Popup/Notification/Notification.qml
Gaelle Braud e07cd93fad ui fixes
paste code register
bold search result part of display names
fix magic search list
fix navigation
2024-09-27 10:45:06 +02:00

70 lines
1.3 KiB
QML

import QtQuick 2.7
import QtQuick.Effects
import Linphone
// =============================================================================
DesktopPopup {
id: mainItem
property var notificationData: ({
timelineModel : null
})
property int overriddenHeight: 120 * DefaultStyle.dp
property int overriddenWidth: 300 * DefaultStyle.dp
property double radius: 0
default property alias _content: content.data
signal deleteNotification (var notification)
// Use as an intermediate between signal/slot without propagate the notification var : last signal parameter will be the last notification instance
function deleteNotificationSlot(){
deleteNotification(notification)
}
function _close (cb) {
if (cb) {
cb()
}
deleteNotificationSlot();
}
Rectangle {
id: background
color: DefaultStyle.grey_0
height: mainItem.overriddenHeight
width: mainItem.overriddenWidth
radius: mainItem.radius
border {
color: DefaultStyle.grey_400
width: 1 * DefaultStyle.dp
}
Item {
id: content
anchors.fill: parent
}
Image {
id: iconSign
anchors {
left: parent.left
top: parent.top
}
}
}
MultiEffect {
source: background
anchors.fill: background
shadowEnabled: true
shadowColor: DefaultStyle.grey_1000
shadowOpacity: 0.1
shadowBlur: 0.1
}
}