summaryrefslogtreecommitdiff
path: root/modules/launcher/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 23:12:23 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 23:12:23 +0800
commitf8eb1b69a034f4aa2833271a0c6b999cfe2a477e (patch)
tree012e14e3e6fbb890a7fbabc70e19e9f65d160400 /modules/launcher/Content.qml
parentsession: show/hide on drag (diff)
downloadcaelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.tar.gz
caelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.tar.bz2
caelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.zip
launcher: move to drawers
Diffstat (limited to 'modules/launcher/Content.qml')
-rw-r--r--modules/launcher/Content.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml
index 51e59f8..be3667d 100644
--- a/modules/launcher/Content.qml
+++ b/modules/launcher/Content.qml
@@ -9,7 +9,7 @@ import QtQuick
Item {
id: root
- required property Scope launcher
+ required property PersistentProperties visibilities
readonly property int padding: Appearance.padding.large
readonly property int rounding: Appearance.rounding.large
@@ -32,7 +32,7 @@ Item {
ContentList {
id: list
- launcher: root.launcher
+ visibilities: root.visibilities
search: search
padding: root.padding
rounding: root.rounding
@@ -80,12 +80,12 @@ Item {
if (currentItem) {
if (list.showWallpapers) {
Wallpapers.setWallpaper(currentItem.modelData.path);
- root.launcher.launcherVisible = false;
+ root.visibilities.launcher = false;
} else if (text.startsWith(LauncherConfig.actionPrefix)) {
currentItem.modelData.onClicked(list.currentList);
} else {
Apps.launch(currentItem.modelData);
- root.launcher.launcherVisible = false;
+ root.visibilities.launcher = false;
}
}
}
@@ -93,13 +93,13 @@ Item {
Keys.onUpPressed: list.currentList?.decrementCurrentIndex()
Keys.onDownPressed: list.currentList?.incrementCurrentIndex()
- Keys.onEscapePressed: root.launcher.launcherVisible = false
+ Keys.onEscapePressed: root.visibilities.launcher = false
Connections {
- target: root.launcher
+ target: root.visibilities
- function onLauncherVisibleChanged(): void {
- if (root.launcher.launcherVisible)
+ function onLauncherChanged(): void {
+ if (root.visibilities.launcher)
search.forceActiveFocus();
else {
search.text = "";