forked from Shinonome/dots-hyprland
lock screen blur: fix center clock option, add settings app toggles
This commit is contained in:
@@ -277,7 +277,7 @@ Variants {
|
|||||||
}
|
}
|
||||||
states: State {
|
states: State {
|
||||||
name: "centered"
|
name: "centered"
|
||||||
when: bgRoot.shouldBlur
|
when: bgRoot.shouldBlur && Config.options.background.lockBlur.centerClock
|
||||||
AnchorChanges {
|
AnchorChanges {
|
||||||
target: clockLoader
|
target: clockLoader
|
||||||
anchors {
|
anchors {
|
||||||
|
|||||||
@@ -7,8 +7,11 @@ import QtQuick.Controls
|
|||||||
RippleButton {
|
RippleButton {
|
||||||
id: root
|
id: root
|
||||||
property string buttonIcon
|
property string buttonIcon
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: contentItem.implicitHeight + 8 * 2
|
implicitHeight: contentItem.implicitHeight + 8 * 2
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.small
|
||||||
|
|
||||||
onClicked: checked = !checked
|
onClicked: checked = !checked
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
@@ -21,7 +24,7 @@ RippleButton {
|
|||||||
id: labelWidget
|
id: labelWidget
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: root.text
|
text: root.text
|
||||||
font.pixelSize: Appearance.font.pixelSize.small
|
font: root.font
|
||||||
color: Appearance.colors.colOnSecondaryContainer
|
color: Appearance.colors.colOnSecondaryContainer
|
||||||
}
|
}
|
||||||
StyledSwitch {
|
StyledSwitch {
|
||||||
|
|||||||
@@ -99,6 +99,48 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
icon: "lock"
|
||||||
|
title: Translation.tr("Lock screen")
|
||||||
|
|
||||||
|
ContentSubsection {
|
||||||
|
title: Translation.tr("Blurred style")
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.large
|
||||||
|
text: Translation.tr('Enable blur')
|
||||||
|
checked: Config.options.background.lockBlur.enable
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.background.lockBlur.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ContentSection {
|
ContentSection {
|
||||||
icon: "side_navigation"
|
icon: "side_navigation"
|
||||||
title: Translation.tr("Sidebars")
|
title: Translation.tr("Sidebars")
|
||||||
|
|||||||
Reference in New Issue
Block a user