drag down to open settings
This commit is contained in:
@@ -52,6 +52,7 @@ CustomMouseArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
cursorShape: (pressed && dragStart.y < bar.implicitHeight) ? Qt.ClosedHandCursor : undefined
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
|
|
||||||
@@ -87,6 +88,13 @@ CustomMouseArea {
|
|||||||
if (!visibilities.bar && Config.barConfig.autoHide && y < bar.implicitHeight)
|
if (!visibilities.bar && Config.barConfig.autoHide && y < bar.implicitHeight)
|
||||||
bar.isHovered = true;
|
bar.isHovered = true;
|
||||||
|
|
||||||
|
if (pressed && dragStart.y < bar.implicitHeight) {
|
||||||
|
if (dragY > 20)
|
||||||
|
visibilities.settings = true;
|
||||||
|
else if (dragY < -20)
|
||||||
|
visibilities.settings = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (panels.sidebar.width === 0) {
|
if (panels.sidebar.width === 0) {
|
||||||
const showOsd = inRightPanel(panels.osd, x, y);
|
const showOsd = inRightPanel(panels.osd, x, y);
|
||||||
|
|
||||||
@@ -114,6 +122,7 @@ CustomMouseArea {
|
|||||||
root.bar.checkPopout(x);
|
root.bar.checkPopout(x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onPressed: event => dragStart = Qt.point(event.x, event.y)
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
function onDashboardChanged() {
|
function onDashboardChanged() {
|
||||||
|
|||||||
Reference in New Issue
Block a user