quickshell: add IconTheme pragma and file:// prefix for app icons
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3068492aa7
commit
ae7c6deac9
1 changed files with 6 additions and 1 deletions
|
|
@ -556,6 +556,7 @@ in
|
||||||
onChange = qsRestart;
|
onChange = qsRestart;
|
||||||
text = ''
|
text = ''
|
||||||
//@ pragma UseQApplication
|
//@ pragma UseQApplication
|
||||||
|
//@ pragma IconTheme Papirus-Dark
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.Notifications
|
import Quickshell.Services.Notifications
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
@ -1501,7 +1502,11 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
property string appIconName: modelData.properties["application.icon-name"] || ""
|
property string appIconName: modelData.properties["application.icon-name"] || ""
|
||||||
property string appIconPath: appIconName !== "" ? (Quickshell.iconPath(appIconName) || "") : ""
|
property string appIconPath: {
|
||||||
|
if (appIconName === "") return "";
|
||||||
|
let p = Quickshell.iconPath(appIconName);
|
||||||
|
return p ? "file://" + p : "";
|
||||||
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue