mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
BarSectionEdit: fix click in the background closing panel, fix ghost bg color when dragging
This commit is contained in:
@@ -240,7 +240,7 @@ NBox {
|
|||||||
width: 0
|
width: 0
|
||||||
height: Style.baseWidgetSize * 1.15 * scaling
|
height: Style.baseWidgetSize * 1.15 * scaling
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
color: "transparent"
|
color: Color.transparent
|
||||||
border.color: Color.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderS * scaling)
|
border.width: Math.max(1, Style.borderS * scaling)
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
@@ -305,7 +305,7 @@ NBox {
|
|||||||
|
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
preventStealing: false
|
preventStealing: false
|
||||||
propagateComposedEvents: !dragStarted
|
propagateComposedEvents: false
|
||||||
hoverEnabled: true // Always track mouse for drag operations
|
hoverEnabled: true // Always track mouse for drag operations
|
||||||
|
|
||||||
property point startPos: Qt.point(0, 0)
|
property point startPos: Qt.point(0, 0)
|
||||||
@@ -458,7 +458,7 @@ NBox {
|
|||||||
// Setup ghost widget
|
// Setup ghost widget
|
||||||
if (draggedWidget) {
|
if (draggedWidget) {
|
||||||
dragGhost.width = draggedWidget.width
|
dragGhost.width = draggedWidget.width
|
||||||
dragGhost.color = root.getWidgetColor(draggedModelData)
|
dragGhost.color = root.getWidgetColor(draggedModelData)[0]
|
||||||
ghostText.text = draggedModelData.id
|
ghostText.text = draggedModelData.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user