Skip to content

Commit

Permalink
feat: click blank area to hide FullscreenFrame
Browse files Browse the repository at this point in the history
实现点击空白区域隐藏全屏启动器的需求。

Log:
  • Loading branch information
BLumia committed Aug 28, 2023
1 parent c3ede95 commit f2f0d44
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ Control {
// }
background: Image {
source: DesktopIntegration.backgroundUrl

MouseArea {
anchors.fill: parent
onPressed: {
if (!DebugHelper.avoidHideWindow) {
LauncherController.visible = false
}
}
}
}

contentItem: ColumnLayout {
Expand Down Expand Up @@ -70,7 +79,7 @@ Control {
}
}

StackView {
Item {
Layout.fillWidth: true
Layout.fillHeight: true

Expand Down Expand Up @@ -134,6 +143,16 @@ Control {
}
}
}

// Since SwipeView will catch the mouse click event so we need to also do it here...
MouseArea {
anchors.fill: parent
onPressed: {
if (!DebugHelper.avoidHideWindow) {
LauncherController.visible = false
}
}
}
}
}
}
Expand Down

0 comments on commit f2f0d44

Please sign in to comment.