launcher: windows provider adds a small badge icon helping distinguish the entries between AppProviders and WindowsProvider

This commit is contained in:
Lemmy
2026-02-01 09:09:20 -05:00
parent 990211f105
commit bcd9cad49f
2 changed files with 20 additions and 0 deletions
+18
View File
@@ -1203,6 +1203,24 @@ SmartPanel {
color: Color.mOnSurfaceVariant
}
}
// Badge icon overlay (generic indicator for any provider)
Rectangle {
visible: !!modelData.badgeIcon
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.margins: 2
width: height
height: Style.fontSizeM + Style.marginXS
color: Color.mSurfaceVariant
radius: Style.radiusXXS
NIcon {
anchors.centerIn: parent
icon: modelData.badgeIcon || ""
pointSize: Style.fontSizeS
color: Color.mOnSurfaceVariant
}
}
}
// Text content
@@ -97,6 +97,7 @@ Item {
"description": entry.appId,
"icon": iconName || "application-x-executable",
"isTablerIcon": false,
"badgeIcon": "app-window",
"_score": score,
"provider": root,
"windowId": entry.id,
@@ -124,6 +125,7 @@ Item {
"description": win.appId,
"icon": iconName || "application-x-executable",
"isTablerIcon": false,
"badgeIcon": "app-window",
"_score": 0,
"provider": root,
"windowId": win.id,