From 7c0f5533e182a28fcfb208d17ff573e5b1c21f4f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 13 Aug 2025 23:03:23 +1000 Subject: internal: use icon os logo instead of nerd font Add caelestia logo to use as fallback os logo Add recolour lock fetch logo option --- modules/lock/Fetch.qml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'modules/lock/Fetch.qml') 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 -- cgit v1.2.3-freya