summaryrefslogtreecommitdiff
path: root/modules/lock
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 16:25:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 16:25:46 +1000
commit04ce9ccbb4a1b4ee8ee1850f90af886412852b9f (patch)
treeaa2ebf44dc59b5bb56c6c0fd9557f7e82e71d1d4 /modules/lock
parentnix: extend `hm-module` for CLI config options and add `extraRuntimeDeps` to ... (diff)
downloadcaelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.tar.gz
caelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.tar.bz2
caelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.zip
internal: better colourisation
Diffstat (limited to 'modules/lock')
-rw-r--r--modules/lock/Fetch.qml10
-rw-r--r--modules/lock/NotifGroup.qml16
2 files changed, 6 insertions, 20 deletions
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index ce64c8c..8f82e88 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -1,12 +1,10 @@
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.Widgets
import Quickshell.Services.UPower
import QtQuick
import QtQuick.Layouts
@@ -149,15 +147,11 @@ ColumnLayout {
visible: active
}
- component OsLogo: IconImage {
+ component OsLogo: ColouredIcon {
source: SysInfo.osLogo
implicitSize: height
- asynchronous: true
-
+ colour: Colours.palette.m3primary
layer.enabled: Config.lock.recolourLogo || SysInfo.isDefaultLogo
- layer.effect: Colouriser {
- colorizationColor: Colours.palette.m3primary
- }
}
component FetchText: MonoText {
diff --git a/modules/lock/NotifGroup.qml b/modules/lock/NotifGroup.qml
index b119503..9af3947 100644
--- a/modules/lock/NotifGroup.qml
+++ b/modules/lock/NotifGroup.qml
@@ -62,15 +62,11 @@ StyledRect {
Component {
id: appIconComp
- IconImage {
+ ColouredIcon {
implicitSize: Math.round(Config.notifs.sizes.image * 0.6)
source: Quickshell.iconPath(root.appIcon)
- asynchronous: true
-
+ colour: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
layer.enabled: root.appIcon.endsWith("symbolic")
- layer.effect: Colouriser {
- colorizationColor: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
- }
}
}
@@ -109,16 +105,12 @@ StyledRect {
color: root.urgency === "critical" ? Colours.palette.m3error : root.urgency === "low" ? Colours.palette.m3surfaceContainerHighest : Colours.palette.m3secondaryContainer
radius: Appearance.rounding.full
- IconImage {
+ ColouredIcon {
anchors.centerIn: parent
implicitSize: Math.round(Config.notifs.sizes.badge * 0.6)
source: Quickshell.iconPath(root.appIcon)
- asynchronous: true
-
+ colour: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
layer.enabled: root.appIcon.endsWith("symbolic")
- layer.effect: Colouriser {
- colorizationColor: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
- }
}
}
}