forked from Shinonome/dots-hyprland
lock: allow centering clock when not blurred
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user