lock: allow centering clock when not blurred

This commit is contained in:
end-4
2025-09-22 21:50:25 +02:00
parent a67a8d746f
commit 036d8b4852
5 changed files with 53 additions and 41 deletions
@@ -171,37 +171,41 @@ ContentPage {
title: Translation.tr("Blurred style")
ConfigSwitch {
font.pixelSize: Appearance.font.pixelSize.large
text: Translation.tr('Enable blur')
checked: Config.options.background.lockBlur.enable
checked: Config.options.lock.blur.enable
onCheckedChanged: {
Config.options.background.lockBlur.enable = checked;
Config.options.lock.blur.enable = checked;
}
}
ConfigRow {
uniform: true
ConfigSwitch {
enabled: Config.options.background.lockBlur.enable
font.pixelSize: Appearance.font.pixelSize.large
text: Translation.tr('Center clock')
checked: Config.options.background.lockBlur.centerClock
onCheckedChanged: {
Config.options.background.lockBlur.centerClock = checked;
}
}
ConfigSwitch {
enabled: Config.options.background.lockBlur.enable
font.pixelSize: Appearance.font.pixelSize.large
text: Translation.tr('Show "Locked" text')
checked: Config.options.background.lockBlur.showLockedText
onCheckedChanged: {
Config.options.background.lockBlur.showLockedText = checked;
}
ConfigSpinBox {
text: Translation.tr("Blur: Extra zoom (%)")
value: Config.options.lock.blur.extraZoom * 100
from: 1
to: 150
stepSize: 2
onValueChanged: {
Config.options.lock.blur.extraZoom = value / 100;
}
}
ConfigSwitch {
text: Translation.tr('Center clock')
checked: Config.options.lock.centerClock
onCheckedChanged: {
Config.options.lock.centerClock = checked;
}
}
ConfigSwitch {
text: Translation.tr('Show "Locked" text')
checked: Config.options.lock.showLockedText
onCheckedChanged: {
Config.options.lock.showLockedText = checked;
}
}
}
}