repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

fix(notifications): resolve action-icon names via Quickshell.iconPath

b803c13279705782a3dd7b82ba65d964cc8070d6

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

The action-icons commit fed a bare freedesktop name straight to
IconImage.source. Per Quickshell docs a themed name must be resolved with
Quickshell.iconPath(name, true) (the working notification icons arrived
pre-resolved as image://icon/ provider URLs, which masked this). Resolve the
identifier to a real path; empty string when the icon is absent keeps the
visible gate honest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Changed files (1)

+4 / −2 text lines

Diff layout

quickshell/nuguland/NotificationCard.qml

Modified

+4 / −2 text lines

11import QtQuick
2import Quickshell
23import Quickshell.Widgets
45Rectangle {
224225 delegate: Rectangle {
225226 id: actionBtn
226227 required property var modelData
227 // action-icons: identifier doubles as a freedesktop icon name.
228 readonly property string actIcon: String(actionBtn.modelData.icon || "")
228 // action-icons: identifier doubles as a freedesktop icon
229 // name; resolve it to a real path (empty if absent).
230 readonly property string actIcon: actionBtn.modelData.icon ? Quickshell.iconPath(String(actionBtn.modelData.icon), true) : ""
229231 height: 26
230232 width: Math.max(58, actRow.implicitWidth + 18)
231233 radius: 8