diff --git a/Config/Config.qml b/Config/Config.qml index ba4c6f2..c694c28 100644 --- a/Config/Config.qml +++ b/Config/Config.qml @@ -241,6 +241,7 @@ Singleton { return { recolorLogo: lock.recolorLogo, enableFprint: lock.enableFprint, + showNotifContent: lock.showNotifContent, maxFprintTries: lock.maxFprintTries, blurAmount: lock.blurAmount, sizes: { diff --git a/Config/LockConf.qml b/Config/LockConf.qml index e377459..bf83565 100644 --- a/Config/LockConf.qml +++ b/Config/LockConf.qml @@ -5,6 +5,7 @@ JsonObject { property bool enableFprint: true property int maxFprintTries: 3 property bool recolorLogo: false + property bool showNotifContent: false property Sizes sizes: Sizes { } diff --git a/Modules/Lock/NotifGroup.qml b/Modules/Lock/NotifGroup.qml index a0d0d21..eaca951 100644 --- a/Modules/Lock/NotifGroup.qml +++ b/Modules/Lock/NotifGroup.qml @@ -284,6 +284,8 @@ CustomRect { Layout.fillWidth: true color: root.urgency === "critical" ? DynamicColors.palette.m3onSecondaryContainer : DynamicColors.palette.m3onSurface text: { + if (!Config.lock.showNotifContent) + return "Unlock to view"; const summary = modelData.summary.replace(/\n/g, " "); const body = modelData.body.replace(/\n/g, " "); const color = root.urgency === "critical" ? DynamicColors.palette.m3secondary : DynamicColors.palette.m3outline; diff --git a/Modules/Settings/Categories/Lockscreen.qml b/Modules/Settings/Categories/Lockscreen.qml index 4c6c3e3..9c63787 100644 --- a/Modules/Settings/Categories/Lockscreen.qml +++ b/Modules/Settings/Categories/Lockscreen.qml @@ -31,8 +31,8 @@ SettingsPage { } SettingSpinBox { - name: "Max fingerprint tries" min: 1 + name: "Max fingerprint tries" object: Config.lock setting: "maxFprintTries" step: 1 @@ -41,9 +41,18 @@ SettingsPage { Separator { } + SettingSwitch { + name: "Show notification details" + object: Config.lock + setting: "showNotifContent" + } + + Separator { + } + SettingSpinBox { - name: "Blur amount" min: 0 + name: "Blur amount" object: Config.lock setting: "blurAmount" step: 1 @@ -53,9 +62,9 @@ SettingsPage { } SettingSpinBox { - name: "Height multiplier" max: 2 min: 0.1 + name: "Height multiplier" object: Config.lock.sizes setting: "heightMult" step: 0.05 @@ -65,9 +74,9 @@ SettingsPage { } SettingSpinBox { - name: "Aspect ratio" max: 4 min: 0.5 + name: "Aspect ratio" object: Config.lock.sizes setting: "ratio" step: 0.05 @@ -77,8 +86,8 @@ SettingsPage { } SettingSpinBox { - name: "Center width" min: 100 + name: "Center width" object: Config.lock.sizes setting: "centerWidth" step: 10 diff --git a/scripts/SettingsIndex.mjs b/scripts/SettingsIndex.mjs index 06a2006..8e6303a 100644 --- a/scripts/SettingsIndex.mjs +++ b/scripts/SettingsIndex.mjs @@ -304,6 +304,13 @@ export const settingsIndex = [ section: "Lockscreen", keywords: ["attempts", "limit", "fprint"], }, + { + name: "Show notification details", + category: "lockscreen", + categoryName: "Lockscreen", + section: "Lockscreen", + keywords: ["notification", "hide", "privacy"], + }, { name: "Blur amount", category: "lockscreen",