summaryrefslogtreecommitdiff
path: root/utils/SysInfo.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-13 23:03:23 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-13 23:03:23 +1000
commit7c0f5533e182a28fcfb208d17ff573e5b1c21f4f (patch)
treec6e21237f91037772c00aee18a6b6c7ea16d4123 /utils/SysInfo.qml
parentconfig: add config for disabling smart scheme (diff)
downloadcaelestia-shell-7c0f5533e182a28fcfb208d17ff573e5b1c21f4f.tar.gz
caelestia-shell-7c0f5533e182a28fcfb208d17ff573e5b1c21f4f.tar.bz2
caelestia-shell-7c0f5533e182a28fcfb208d17ff573e5b1c21f4f.zip
internal: use icon os logo instead of nerd font
Add caelestia logo to use as fallback os logo Add recolour lock fetch logo option
Diffstat (limited to 'utils/SysInfo.qml')
-rw-r--r--utils/SysInfo.qml18
1 files changed, 6 insertions, 12 deletions
diff --git a/utils/SysInfo.qml b/utils/SysInfo.qml
index 91ef112..a46bcf4 100644
--- a/utils/SysInfo.qml
+++ b/utils/SysInfo.qml
@@ -11,8 +11,8 @@ Singleton {
property string osPrettyName
property string osId
property list<string> osIdLike
- property string logo
- property string osIcon: ""
+ property string osLogo: `file://${Quickshell.shellDir}/assets/logo.svg`
+ property bool isDefaultLogo: true
property string uptime
readonly property string user: Quickshell.env("USER")
@@ -32,17 +32,11 @@ Singleton {
root.osPrettyName = fd("PRETTY_NAME");
root.osId = fd("ID");
root.osIdLike = fd("ID_LIKE").split(" ");
- root.logo = fd("LOGO");
- const osIcons = Icons.osIcons;
- if (osIcons.hasOwnProperty(root.osId)) {
- root.osIcon = osIcons[root.osId];
- } else {
- for (const id of root.osIdLike) {
- if (osIcons.hasOwnProperty(id)) {
- root.osIcon = osIcons[id];
- }
- }
+ const logo = Quickshell.iconPath(fd("LOGO"), true);
+ if (logo) {
+ root.osLogo = logo;
+ root.isDefaultLogo = false;
}
}
}