diff options
| author | Evertiro <dgriffiths@widgit.io> | 2026-01-16 23:58:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-17 16:58:06 +1100 |
| commit | 96942d5ff38698513f0330618073dbdf2af1bd59 (patch) | |
| tree | 4982d1679a558519e4bc443431bb0939f0e6680d /utils/SysInfo.qml | |
| parent | utilities: fix fullscreen record (#1085) (diff) | |
| download | caelestia-shell-96942d5ff38698513f0330618073dbdf2af1bd59.tar.gz caelestia-shell-96942d5ff38698513f0330618073dbdf2af1bd59.tar.bz2 caelestia-shell-96942d5ff38698513f0330618073dbdf2af1bd59.zip | |
sysinfo: allow overriding OS icon (#1091)
* Allow overriding OS icon
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Support icons and live reloading
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* isDefaultLogo should default to true
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
---------
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
Diffstat (limited to '')
| -rw-r--r-- | utils/SysInfo.qml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/utils/SysInfo.qml b/utils/SysInfo.qml index ab2699d..19aa4a7 100644 --- a/utils/SysInfo.qml +++ b/utils/SysInfo.qml @@ -1,5 +1,7 @@ pragma Singleton +import qs.config +import qs.utils import Quickshell import Quickshell.Io import QtQuick @@ -34,13 +36,27 @@ Singleton { root.osIdLike = fd("ID_LIKE").split(" "); const logo = Quickshell.iconPath(fd("LOGO"), true); - if (logo) { + if (Config.general.logo === "caelestia") { + root.osLogo = Qt.resolvedUrl(`${Quickshell.shellDir}/assets/logo.svg`); + root.isDefaultLogo = true; + } else if (Config.general.logo) { + root.osLogo = Quickshell.iconPath(Config.general.logo, true) || "file://" + Paths.absolutePath(Config.general.logo); + root.isDefaultLogo = false; + } else if (logo) { root.osLogo = logo; root.isDefaultLogo = false; } } } + Connections { + target: Config.general + + function onLogoChanged(): void { + osRelease.reload(); + } + } + Timer { running: true repeat: true |