updates
This commit is contained in:
@@ -7,15 +7,18 @@ PopupWindow {
|
||||
|
||||
property Item anchorItem
|
||||
property bool anchorHovered: false
|
||||
property int popupWidth: 300
|
||||
property int minpopupWidth: 300
|
||||
property int minpopupHeight: 50
|
||||
property int popupVerticalOffset: 0
|
||||
property int spacingValue: 12
|
||||
property int radiusValue: 12
|
||||
|
||||
default property alias content: contentColumn.data
|
||||
|
||||
visible: false
|
||||
color: "transparent"
|
||||
width: Math.max(300, contentColumn.implicitWidth + 2 * 12)
|
||||
height: Math.max(50, contentColumn.implicitHeight + 2 * 12)
|
||||
width: Math.max(popup.minpopupWidth, contentColumn.implicitWidth + 2 * popup.spacingValue)
|
||||
height: Math.max(popup.minpopupHeight, contentColumn.implicitHeight + 2 * popup.spacingValue)
|
||||
|
||||
onAnchorHoveredChanged: popup.updateVisibility()
|
||||
|
||||
@@ -59,7 +62,7 @@ PopupWindow {
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
color: Qt.alpha(Colors.primaryContainer, 0.9)
|
||||
radius: 12
|
||||
radius: popup.radiusValue
|
||||
border {
|
||||
color: Colors.primaryContainer_fg
|
||||
width: Config.border_width
|
||||
@@ -73,9 +76,9 @@ PopupWindow {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
margins: 12
|
||||
margins: popup.spacingValue
|
||||
}
|
||||
spacing: Config.small_spacing_fun(24)
|
||||
spacing: popup.spacingValue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user