summaryrefslogtreecommitdiff
path: root/modules/lock
diff options
context:
space:
mode:
author八奈見 レイ <rei.tteiimasu@gmail.com>2026-03-15 13:02:32 +0530
committerGitHub <noreply@github.com>2026-03-15 18:32:32 +1100
commite3048464218d065aac3d5a2f3a8c307968555118 (patch)
tree0fe127a61a147db69ab4bfa33aebefce55ea682d /modules/lock
parentmedia: hide person icon if user pfp is ready (#1213) (diff)
downloadcaelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.tar.gz
caelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.tar.bz2
caelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.zip
config: add option to hide notifications on lockscreen (#1211)
Diffstat (limited to 'modules/lock')
-rw-r--r--modules/lock/NotifDock.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/lock/NotifDock.qml b/modules/lock/NotifDock.qml
index 01f7e4b..cce86cd 100644
--- a/modules/lock/NotifDock.qml
+++ b/modules/lock/NotifDock.qml
@@ -41,7 +41,7 @@ ColumnLayout {
Loader {
anchors.centerIn: parent
active: opacity > 0
- opacity: Notifs.list.length > 0 ? 0 : 1
+ opacity: Notifs.list.length > 0 && !Config.lock.hideNotifs ? 0 : 1
sourceComponent: ColumnLayout {
spacing: Appearance.spacing.large
@@ -61,7 +61,7 @@ ColumnLayout {
StyledText {
Layout.alignment: Qt.AlignHCenter
- text: qsTr("No Notifications")
+ text: Config.lock.hideNotifs ? qsTr("Unlock for Notifications") : qsTr("No Notifications")
color: Colours.palette.m3outlineVariant
font.pointSize: Appearance.font.size.large
font.family: Appearance.font.family.mono
@@ -78,7 +78,7 @@ ColumnLayout {
StyledListView {
anchors.fill: parent
-
+ visible: !Config.lock.hideNotifs
spacing: Appearance.spacing.small
clip: true