From 3d9bd733363ab2fd6a3bb5eb12545bc4915bcbf2 Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 31 Mar 2026 11:04:18 -0400 Subject: [PATCH] launcher: some polishes for blur --- quickshell/Modals/DankLauncherV2/LauncherContent.qml | 4 +--- quickshell/Modals/DankLauncherV2/ResultsList.qml | 8 +++++--- quickshell/Modules/AppDrawer/AppDrawerPopout.qml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/quickshell/Modals/DankLauncherV2/LauncherContent.qml b/quickshell/Modals/DankLauncherV2/LauncherContent.qml index 8464112d..43725151 100644 --- a/quickshell/Modals/DankLauncherV2/LauncherContent.qml +++ b/quickshell/Modals/DankLauncherV2/LauncherContent.qml @@ -311,7 +311,7 @@ FocusScope { Item { anchors.fill: parent - visible: !editMode + visible: !editMode && !(root.parentModal?.isClosing ?? false) Item { id: footerBar @@ -737,8 +737,6 @@ FocusScope { Item { width: parent.width height: parent.height - searchField.height - categoryRow.height - fileFilterRow.height - actionPanel.height - Theme.spacingXS * ((categoryRow.visible ? 1 : 0) + (fileFilterRow.visible ? 1 : 0) + 2) - opacity: root.parentModal?.isClosing ? 0 : 1 - ResultsList { id: resultsList anchors.fill: parent diff --git a/quickshell/Modals/DankLauncherV2/ResultsList.qml b/quickshell/Modals/DankLauncherV2/ResultsList.qml index c29f2575..53a2d45f 100644 --- a/quickshell/Modals/DankLauncherV2/ResultsList.qml +++ b/quickshell/Modals/DankLauncherV2/ResultsList.qml @@ -324,6 +324,8 @@ Item { height: 24 z: 100 visible: { + if (BlurService.enabled) + return false; if (mainListView.contentHeight <= mainListView.height) return false; var atBottom = mainListView.contentY >= mainListView.contentHeight - mainListView.height + mainListView.originY - 5; @@ -449,7 +451,7 @@ Item { case "apps": return "apps"; default: - return root.controller?.searchQuery?.length > 0 ? "search_off" : "search"; + return "search_off"; } } } @@ -485,9 +487,9 @@ Item { case "plugins": return hasQuery ? I18n.tr("No plugin results") : I18n.tr("Browse or search plugins"); case "apps": - return hasQuery ? I18n.tr("No apps found") : I18n.tr("Type to search apps"); + return I18n.tr("No apps found"); default: - return hasQuery ? I18n.tr("No results found") : I18n.tr("Type to search"); + return I18n.tr("No results found"); } } } diff --git a/quickshell/Modules/AppDrawer/AppDrawerPopout.qml b/quickshell/Modules/AppDrawer/AppDrawerPopout.qml index d136ad4c..ba07d374 100644 --- a/quickshell/Modules/AppDrawer/AppDrawerPopout.qml +++ b/quickshell/Modules/AppDrawer/AppDrawerPopout.qml @@ -133,7 +133,7 @@ DankPopout { QtObject { id: modalAdapter property bool spotlightOpen: appDrawerPopout.shouldBeVisible - property bool isClosing: false + readonly property bool isClosing: !appDrawerPopout.shouldBeVisible function hide() { appDrawerPopout.close();