toggle to show notif icon on lockscreen
This commit is contained in:
@@ -242,6 +242,7 @@ Singleton {
|
||||
recolorLogo: lock.recolorLogo,
|
||||
enableFprint: lock.enableFprint,
|
||||
showNotifContent: lock.showNotifContent,
|
||||
showNotifIcon: lock.showNotifIcon,
|
||||
maxFprintTries: lock.maxFprintTries,
|
||||
blurAmount: lock.blurAmount,
|
||||
sizes: {
|
||||
|
||||
@@ -6,6 +6,7 @@ JsonObject {
|
||||
property int maxFprintTries: 3
|
||||
property bool recolorLogo: false
|
||||
property bool showNotifContent: false
|
||||
property bool showNotifIcon: false
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ CustomRect {
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
height: Config.notifs.sizes.image
|
||||
source: Qt.resolvedUrl(root.image)
|
||||
visible: Config.lock.showNotifIcon
|
||||
width: Config.notifs.sizes.image
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,15 @@ SettingsPage {
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSwitch {
|
||||
name: "Show notification icon"
|
||||
object: Config.lock
|
||||
setting: "showNotifIcon"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
min: 0
|
||||
name: "Blur amount"
|
||||
|
||||
@@ -311,6 +311,13 @@ export const settingsIndex = [
|
||||
section: "Lockscreen",
|
||||
keywords: ["notification", "hide", "privacy"],
|
||||
},
|
||||
{
|
||||
name: "Show notification icon",
|
||||
category: "lockscreen",
|
||||
categoryName: "Lockscreen",
|
||||
section: "Lockscreen",
|
||||
keywords: ["notification", "hide", "icon"],
|
||||
},
|
||||
{
|
||||
name: "Blur amount",
|
||||
category: "lockscreen",
|
||||
|
||||
Reference in New Issue
Block a user