diff options
| author | 八奈見 レイ <rei.tteiimasu@gmail.com> | 2026-03-15 13:02:32 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-15 18:32:32 +1100 |
| commit | e3048464218d065aac3d5a2f3a8c307968555118 (patch) | |
| tree | 0fe127a61a147db69ab4bfa33aebefce55ea682d | |
| parent | media: hide person icon if user pfp is ready (#1213) (diff) | |
| download | caelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.tar.gz caelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.tar.bz2 caelestia-shell-e3048464218d065aac3d5a2f3a8c307968555118.zip | |
config: add option to hide notifications on lockscreen (#1211)
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | config/Config.qml | 1 | ||||
| -rw-r--r-- | config/LockConfig.qml | 1 | ||||
| -rw-r--r-- | modules/lock/NotifDock.qml | 6 |
4 files changed, 7 insertions, 4 deletions
@@ -567,7 +567,8 @@ default, you must create it manually. "hiddenApps": [] }, "lock": { - "recolourLogo": false + "recolourLogo": false, + "hideNotifs": false }, "notifs": { "actionOnClick": false, diff --git a/config/Config.qml b/config/Config.qml index 059ccce..c5cc109 100644 --- a/config/Config.qml +++ b/config/Config.qml @@ -395,6 +395,7 @@ Singleton { recolourLogo: lock.recolourLogo, enableFprint: lock.enableFprint, maxFprintTries: lock.maxFprintTries, + hideNotifs: lock.hideNotifs, sizes: { heightMult: lock.sizes.heightMult, ratio: lock.sizes.ratio, diff --git a/config/LockConfig.qml b/config/LockConfig.qml index 2af4e2c..d0a9fb3 100644 --- a/config/LockConfig.qml +++ b/config/LockConfig.qml @@ -4,6 +4,7 @@ JsonObject { property bool recolourLogo: false property bool enableFprint: true property int maxFprintTries: 3 + property bool hideNotifs: false property Sizes sizes: Sizes {} component Sizes: JsonObject { 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 |