1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

running apps: fix alignment of fallback icons in non-compact mode

fixes #1963
fixes #2024
This commit is contained in:
bbedward
2026-07-03 17:04:45 -04:00
parent 27230227ef
commit 6e3e178721
2 changed files with 8 additions and 2 deletions
@@ -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;
+4
View File
@@ -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"]);
}