From 7e0af52d5babadb7636dbb9de96b15e5c5dc347b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Thi=E1=BB=87n=20L=E1=BB=99c?= Date: Thu, 6 Aug 2026 11:33:39 +0700 Subject: [PATCH] fix(launcher): honor source badge setting (#3002) (cherry picked from commit 7cb97f4462c6cb72d35fb8d1ce8d65d56edcea70) --- quickshell/Modals/DankLauncherV2/SourceBadge.qml | 3 ++- quickshell/Modals/DankLauncherV2/TileItem.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/quickshell/Modals/DankLauncherV2/SourceBadge.qml b/quickshell/Modals/DankLauncherV2/SourceBadge.qml index 8913e6f55..2e1fe70f0 100644 --- a/quickshell/Modals/DankLauncherV2/SourceBadge.qml +++ b/quickshell/Modals/DankLauncherV2/SourceBadge.qml @@ -7,6 +7,7 @@ Item { property string source: "" property int glyphSize: 14 + property bool badgeVisible: true readonly property var sourceAsset: ({ "flatpak": "../../assets/package-sources/flatpak.svg", @@ -17,7 +18,7 @@ Item { readonly property string assetPath: sourceAsset[source] || "" - visible: SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0 + visible: badgeVisible && SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0 implicitWidth: glyphSize implicitHeight: glyphSize diff --git a/quickshell/Modals/DankLauncherV2/TileItem.qml b/quickshell/Modals/DankLauncherV2/TileItem.qml index 1f148e129..2f743a377 100644 --- a/quickshell/Modals/DankLauncherV2/TileItem.qml +++ b/quickshell/Modals/DankLauncherV2/TileItem.qml @@ -178,7 +178,7 @@ Rectangle { anchors.margins: Theme.spacingXS source: root.item?.type === "app" ? (root.item.source || "") : "" glyphSize: 16 - visible: !root.isSelected && !!source + badgeVisible: !root.isSelected } } }