From 6e3e1787215a39d33948ad3fa2f1de3c4b6d39f4 Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 3 Jul 2026 17:04:45 -0400 Subject: [PATCH] running apps: fix alignment of fallback icons in non-compact mode fixes #1963 fixes #2024 --- quickshell/Modules/DankBar/Widgets/RunningApps.qml | 6 ++++-- quickshell/Services/IconThemeService.qml | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/quickshell/Modules/DankBar/Widgets/RunningApps.qml b/quickshell/Modules/DankBar/Widgets/RunningApps.qml index 789d4d514..9b0779fe6 100644 --- a/quickshell/Modules/DankBar/Widgets/RunningApps.qml +++ b/quickshell/Modules/DankBar/Widgets/RunningApps.qml @@ -330,7 +330,8 @@ BasePill { } StyledText { - anchors.centerIn: parent + anchors.horizontalCenter: iconImg.horizontalCenter + anchors.verticalCenter: parent.verticalCenter visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId) text: { root._desktopEntriesUpdateTrigger; @@ -573,7 +574,8 @@ BasePill { } StyledText { - anchors.centerIn: parent + anchors.horizontalCenter: iconImg.horizontalCenter + anchors.verticalCenter: parent.verticalCenter visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId) text: { root._desktopEntriesUpdateTrigger; diff --git a/quickshell/Services/IconThemeService.qml b/quickshell/Services/IconThemeService.qml index 27d6b6a0a..b44129562 100644 --- a/quickshell/Services/IconThemeService.qml +++ b/quickshell/Services/IconThemeService.qml @@ -29,6 +29,10 @@ Singleton { const localData = Paths.strip(StandardPaths.writableLocation(StandardPaths.GenericDataLocation)); const home = Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation)); const dataDirs = xdg.trim() !== "" ? xdg.split(":").concat([localData]) : ["/usr/share", "/usr/local/share", localData]; + for (const flatpak of [localData + "/flatpak/exports/share", "/var/lib/flatpak/exports/share"]) { + if (!dataDirs.includes(flatpak)) + dataDirs.push(flatpak); + } return dataDirs.map(d => d + "/icons").concat([home + "/.icons"]); }