forked from Shinonome/dots-hyprland
settings: add toggles for lock screen security options
This commit is contained in:
@@ -96,7 +96,7 @@ ContentPage {
|
|||||||
|
|
||||||
ContentSection {
|
ContentSection {
|
||||||
icon: "point_scan"
|
icon: "point_scan"
|
||||||
title: Translation.tr("Crosshair")
|
title: Translation.tr("Crosshair overlay")
|
||||||
|
|
||||||
MaterialTextArea {
|
MaterialTextArea {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -109,6 +109,12 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
StyledText {
|
||||||
|
Layout.leftMargin: 10
|
||||||
|
color: Appearance.colors.colSubtext
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.smallie
|
||||||
|
text: Translation.tr("Press Super+G to toggle appearance")
|
||||||
|
}
|
||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
RippleButtonWithIcon {
|
RippleButtonWithIcon {
|
||||||
id: editorButton
|
id: editorButton
|
||||||
@@ -176,26 +182,33 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ContentSubsection {
|
ContentSubsection {
|
||||||
title: Translation.tr("Blurred style")
|
title: Translation.tr("Security")
|
||||||
|
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
text: Translation.tr('Enable blur')
|
text: Translation.tr('Require password to power off/restart')
|
||||||
checked: Config.options.lock.blur.enable
|
checked: Config.options.lock.security.requirePasswordToPower
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
Config.options.lock.blur.enable = checked;
|
Config.options.lock.security.requirePasswordToPower = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: Translation.tr("Remember that on most devices one can always hold the power button to force shutdown\nThis only makes it a tiny bit harder for accidents to happen")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSpinBox {
|
ConfigSwitch {
|
||||||
text: Translation.tr("Blur: Extra zoom (%)")
|
text: Translation.tr('Also unlock keyring')
|
||||||
value: Config.options.lock.blur.extraZoom * 100
|
checked: Config.options.lock.security.unlockKeyring
|
||||||
from: 1
|
onCheckedChanged: {
|
||||||
to: 150
|
Config.options.lock.security.unlockKeyring = checked;
|
||||||
stepSize: 2
|
}
|
||||||
onValueChanged: {
|
StyledToolTip {
|
||||||
Config.options.lock.blur.extraZoom = value / 100;
|
text: Translation.tr("This is usually safe and needed for your browser and AI sidebar anyway\nMostly useful for those who use lock on startup instead of a display manager that does it (GDM, SDDM, etc.)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ContentSubsection {
|
||||||
|
title: Translation.tr("Style: general")
|
||||||
|
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
text: Translation.tr('Center clock')
|
text: Translation.tr('Center clock')
|
||||||
@@ -212,6 +225,28 @@ ContentPage {
|
|||||||
Config.options.lock.showLockedText = checked;
|
Config.options.lock.showLockedText = checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
ContentSubsection {
|
||||||
|
title: Translation.tr("Style: Blurred")
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
text: Translation.tr('Enable blur')
|
||||||
|
checked: Config.options.lock.blur.enable
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.lock.blur.enable = checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfigSpinBox {
|
||||||
|
text: Translation.tr("Extra wallpaper zoom (%)")
|
||||||
|
value: Config.options.lock.blur.extraZoom * 100
|
||||||
|
from: 1
|
||||||
|
to: 150
|
||||||
|
stepSize: 2
|
||||||
|
onValueChanged: {
|
||||||
|
Config.options.lock.blur.extraZoom = value / 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user