From fee3b7f2a7dbbbe11ee929f134e811f9d746a7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tri=E1=BB=87u=20Kha?= Date: Wed, 11 Mar 2026 21:55:54 +0700 Subject: [PATCH] fix(appdrawer): launcher launched via appdrawer doesnt respect size (#1960) setting --- .../Modules/AppDrawer/AppDrawerPopout.qml | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/quickshell/Modules/AppDrawer/AppDrawerPopout.qml b/quickshell/Modules/AppDrawer/AppDrawerPopout.qml index 2fc982c5..264cc036 100644 --- a/quickshell/Modules/AppDrawer/AppDrawerPopout.qml +++ b/quickshell/Modules/AppDrawer/AppDrawerPopout.qml @@ -8,6 +8,9 @@ DankPopout { layerNamespace: "dms:app-launcher" + readonly property real screenWidth: screen?.width ?? 1920 + readonly property real screenHeight: screen?.height ?? 1080 + property string _pendingMode: "" property string _pendingQuery: "" @@ -41,8 +44,35 @@ DankPopout { openWithQuery(query); } - popupWidth: 560 - popupHeight: 640 + readonly property int _baseWidth: { + switch (SettingsData.dankLauncherV2Size) { + case "micro": + return 500; + case "medium": + return 720; + case "large": + return 860; + default: + return 620; + } + } + + readonly property int _baseHeight: { + switch (SettingsData.dankLauncherV2Size) { + case "micro": + return 480; + case "medium": + return 720; + case "large": + return 860; + default: + return 600; + } + } + + popupWidth: Math.min(_baseWidth, screenWidth - 100) + popupHeight: Math.min(_baseHeight, screenHeight - 100) + triggerWidth: 40 positioning: "" contentHandlesKeys: contentLoader.item?.launcherContent?.editMode ?? false