mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
launcher: windows provider adds a small badge icon helping distinguish the entries between AppProviders and WindowsProvider
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user