Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions quickshell/Modals/DankLauncherV2/ControllerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ function classifyAppSource(app) {
|| exec.indexOf("/etc/profiles/per-user/") !== -1)
return "nix";

if (exec.indexOf("steam steam://rungameid/") !== -1)
return "steam";

if (exec.indexOf("waydroid app ") !== -1)
return "waydroid";

return "system";
}

Expand Down
16 changes: 14 additions & 2 deletions quickshell/Modals/DankLauncherV2/SourceBadge.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import QtQuick
import Quickshell
import Quickshell.Widgets
import qs.Common

Expand All @@ -12,7 +13,9 @@ Item {
"flatpak": "../../assets/package-sources/flatpak.svg",
"snap": "../../assets/package-sources/snap.svg",
"appimage": "../../assets/package-sources/appimage.svg",
"nix": "../../assets/package-sources/nix.svg"
"nix": "../../assets/package-sources/nix.svg",
"steam": "steam",
"waydroid": "waydroid"
})

readonly property string assetPath: sourceAsset[source] || ""
Expand All @@ -23,7 +26,16 @@ Item {

IconImage {
anchors.fill: parent
source: root.assetPath ? Qt.resolvedUrl(root.assetPath) : ""
source: {
if (!root.assetPath) {
return "";
}
if (root.assetPath.indexOf("/") !== -1) {
return Qt.resolvedUrl(root.assetPath);
} else {
return Quickshell.iconPath(root.assetPath);
}
}
implicitSize: root.glyphSize * 2
backer.sourceSize: Qt.size(root.glyphSize * 2, root.glyphSize * 2)
smooth: true
Expand Down
Loading