summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
authorRobin Seger <pixelkhaos@gmail.com>2026-03-09 14:27:43 +0100
committerGitHub <noreply@github.com>2026-03-10 00:27:43 +1100
commit1bb7afe7b02dbf6114687d7fede00fb980a5f5be (patch)
treebba8eb21feb6ae57040418c153df3d6908b4e479 /modules/bar
parentfix: unify wifi toggle state with Nmcli service to prevent desync (#1232) (diff)
downloadcaelestia-shell-1bb7afe7b02dbf6114687d7fede00fb980a5f5be.tar.gz
caelestia-shell-1bb7afe7b02dbf6114687d7fede00fb980a5f5be.tar.bz2
caelestia-shell-1bb7afe7b02dbf6114687d7fede00fb980a5f5be.zip
feat: add Logo shape component (#1247)
* Logo Shape component - Added Logo.qml component with scaling - Updated OsIcon to use Logo component * missed removing tour * [CI] chore: update flake * Colours.palette defaults * fixed import, added logo to Fetch.qml * single shape parent, prop changes * prop changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/components/OsIcon.qml30
1 files changed, 24 insertions, 6 deletions
diff --git a/modules/bar/components/OsIcon.qml b/modules/bar/components/OsIcon.qml
index 2bc3864..a61500a 100644
--- a/modules/bar/components/OsIcon.qml
+++ b/modules/bar/components/OsIcon.qml
@@ -3,9 +3,13 @@ import qs.services
import qs.config
import qs.utils
import QtQuick
+import qs.components
Item {
id: root
+
+ implicitWidth: Appearance.font.size.large * 1.2
+ implicitHeight: Appearance.font.size.large * 1.2
MouseArea {
anchors.fill: parent
@@ -16,13 +20,27 @@ Item {
}
}
- ColouredIcon {
+ Loader {
anchors.centerIn: parent
- source: SysInfo.osLogo
- implicitSize: Appearance.font.size.large * 1.2
- colour: Colours.palette.m3tertiary
+ sourceComponent: SysInfo.isDefaultLogo ? caelestiaLogo : distroIcon
}
- implicitWidth: Appearance.font.size.large * 1.2
- implicitHeight: Appearance.font.size.large * 1.2
+ Component {
+ id: caelestiaLogo
+
+ Logo {
+ implicitWidth: Appearance.font.size.large * 1.8
+ implicitHeight: Appearance.font.size.large * 1.8
+ }
+ }
+
+ Component {
+ id: distroIcon
+
+ ColouredIcon {
+ source: SysInfo.osLogo
+ implicitSize: Appearance.font.size.large * 1.2
+ colour: Colours.palette.m3tertiary
+ }
+ }
}