mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 11:58:11 +00:00
43 lines
963 B
QML
43 lines
963 B
QML
import QtQuick
|
|
import QtQuick.Controls.Basic as Control
|
|
import QtQuick.Effects
|
|
import Linphone
|
|
|
|
Control.Popup{
|
|
id: mainItem
|
|
padding: 0
|
|
property color underlineColor : DefaultStyle.main1_500_main
|
|
property int radius: 16 * DefaultStyle.dp
|
|
property bool hovered: mouseArea.containsMouse
|
|
|
|
background: Item{
|
|
Rectangle {
|
|
visible: mainItem.underlineColor != undefined
|
|
width: mainItem.width
|
|
height: mainItem.height + 2 * DefaultStyle.dp
|
|
color: mainItem.underlineColor
|
|
radius: mainItem.radius
|
|
}
|
|
Rectangle{
|
|
id: backgroundItem
|
|
width: mainItem.width
|
|
height: mainItem.height
|
|
radius: mainItem.radius
|
|
color: DefaultStyle.grey_0
|
|
border.color: DefaultStyle.grey_0
|
|
}
|
|
MultiEffect {
|
|
anchors.fill: backgroundItem
|
|
source: backgroundItem
|
|
shadowEnabled: true
|
|
shadowColor: DefaultStyle.grey_1000
|
|
shadowBlur: 0.1
|
|
shadowOpacity: 0.1
|
|
}
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
}
|
|
}
|
|
}
|