forked from quickshell/quickshell
core/icon: allow changing the icon theme
This commit is contained in:
parent
7a283089b1
commit
bd8978375b
2 changed files with 13 additions and 0 deletions
|
@ -124,6 +124,13 @@ public:
|
|||
Q_INVOKABLE QVariant env(const QString& variable);
|
||||
|
||||
/// Returns a string usable for a @@QtQuick.Image.source for a given system icon.
|
||||
///
|
||||
/// > [!INFO] By default, icons are loaded from the theme selected by the qt platform theme,
|
||||
/// > which means they should match with all other qt applications on your system.
|
||||
/// >
|
||||
/// > If you want to use a different icon theme, you can put `//@ pragma IconTheme <name>`
|
||||
/// > at the top of your root config file or set the `QS_ICON_THEME` variable to the name
|
||||
/// > of your icon theme.
|
||||
Q_INVOKABLE static QString iconPath(const QString& icon);
|
||||
|
||||
[[nodiscard]] QString workingDirectory() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue