forked from quickshell/quickshell
core/global: add Quickshell.iconPath
Replaces "image://icon/" in user facing code.
This commit is contained in:
parent
24f54f579f
commit
bb33c9a0c4
2 changed files with 10 additions and 0 deletions
|
@ -125,6 +125,11 @@ public:
|
|||
/// Returns the string value of an environment variable or null if it is not set.
|
||||
Q_INVOKABLE QVariant env(const QString& variable);
|
||||
|
||||
/// Returns a source string usable in an [Image] for a given system icon.
|
||||
///
|
||||
/// [Image]: https://doc.qt.io/qt-6/qml-qtquick-image.html
|
||||
Q_INVOKABLE static QString iconPath(const QString& icon);
|
||||
|
||||
[[nodiscard]] QString workingDirectory() const;
|
||||
void setWorkingDirectory(QString workingDirectory);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue