summaryrefslogtreecommitdiff
path: root/modules/lock/Fetch.qml
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/lock/Fetch.qml
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/lock/Fetch.qml')
-rw-r--r--modules/lock/Fetch.qml31
1 files changed, 22 insertions, 9 deletions
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index ded5608..55d6aa7 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -51,7 +51,7 @@ ColumnLayout {
Layout.fillHeight: true
active: !iconLoader.active
- sourceComponent: OsLogo {}
+ sourceComponent: SysInfo.isDefaultLogo ? caelestiaLogo : distroIcon
}
}
@@ -66,7 +66,7 @@ ColumnLayout {
Layout.fillHeight: true
active: root.width > 320
- sourceComponent: OsLogo {}
+ sourceComponent: SysInfo.isDefaultLogo ? caelestiaLogo : distroIcon
}
ColumnLayout {
@@ -142,15 +142,28 @@ ColumnLayout {
}
}
- component WrappedLoader: Loader {
- visible: active
+ Component {
+ id: caelestiaLogo
+
+ Logo {
+ width: height
+ height: height
+ }
+ }
+
+ Component {
+ id: distroIcon
+
+ ColouredIcon {
+ source: SysInfo.osLogo
+ implicitSize: height
+ colour: Colours.palette.m3primary
+ layer.enabled: Config.lock.recolourLogo
+ }
}
- component OsLogo: ColouredIcon {
- source: SysInfo.osLogo
- implicitSize: height
- colour: Colours.palette.m3primary
- layer.enabled: Config.lock.recolourLogo || SysInfo.isDefaultLogo
+ component WrappedLoader: Loader {
+ visible: active
}
component FetchText: MonoText {