summaryrefslogtreecommitdiff
path: root/modules/lock/Fetch.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 /modules/lock/Fetch.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 'modules/lock/Fetch.qml')
-rw-r--r--modules/lock/Fetch.qml26
1 files changed, 15 insertions, 11 deletions
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index 5584fbd..ce64c8c 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -1,10 +1,11 @@
pragma ComponentBehavior: Bound
import qs.components
+import qs.components.widgets
+import qs.components.effects
import qs.services
import qs.config
import qs.utils
-import Quickshell
import Quickshell.Widgets
import Quickshell.Services.UPower
import QtQuick
@@ -50,14 +51,9 @@ ColumnLayout {
WrappedLoader {
Layout.fillHeight: true
- asynchronous: true
active: !iconLoader.active
- visible: active
- sourceComponent: IconImage {
- source: Quickshell.iconPath(SysInfo.logo)
- implicitSize: height
- }
+ sourceComponent: OsLogo {}
}
}
@@ -72,10 +68,7 @@ ColumnLayout {
Layout.fillHeight: true
active: root.width > 320
- sourceComponent: IconImage {
- source: Quickshell.iconPath(SysInfo.logo)
- implicitSize: height
- }
+ sourceComponent: OsLogo {}
}
ColumnLayout {
@@ -156,6 +149,17 @@ ColumnLayout {
visible: active
}
+ component OsLogo: IconImage {
+ source: SysInfo.osLogo
+ implicitSize: height
+ asynchronous: true
+
+ layer.enabled: Config.lock.recolourLogo || SysInfo.isDefaultLogo
+ layer.effect: Colouriser {
+ colorizationColor: Colours.palette.m3primary
+ }
+ }
+
component FetchText: MonoText {
Layout.fillWidth: true
font.pointSize: root.width > 400 ? Appearance.font.size.larger : Appearance.font.size.normal