mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 14:08:29 -04:00
running apps: fix alignment of fallback icons in non-compact mode
fixes #1963 fixes #2024
This commit is contained in:
@@ -330,7 +330,8 @@ BasePill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
anchors.centerIn: parent
|
anchors.horizontalCenter: iconImg.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId)
|
visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId)
|
||||||
text: {
|
text: {
|
||||||
root._desktopEntriesUpdateTrigger;
|
root._desktopEntriesUpdateTrigger;
|
||||||
@@ -573,7 +574,8 @@ BasePill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
anchors.centerIn: parent
|
anchors.horizontalCenter: iconImg.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId)
|
visible: !iconImg.visible && !Paths.isSteamApp(effectiveAppId)
|
||||||
text: {
|
text: {
|
||||||
root._desktopEntriesUpdateTrigger;
|
root._desktopEntriesUpdateTrigger;
|
||||||
|
|||||||
@@ -29,6 +29,10 @@ Singleton {
|
|||||||
const localData = Paths.strip(StandardPaths.writableLocation(StandardPaths.GenericDataLocation));
|
const localData = Paths.strip(StandardPaths.writableLocation(StandardPaths.GenericDataLocation));
|
||||||
const home = Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation));
|
const home = Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation));
|
||||||
const dataDirs = xdg.trim() !== "" ? xdg.split(":").concat([localData]) : ["/usr/share", "/usr/local/share", localData];
|
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"]);
|
return dataDirs.map(d => d + "/icons").concat([home + "/.icons"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user