Settings + SetupWizard

- Added a Lock screen settings tabs
- Added button in settings/general tab to re-run the setup wizard
- Fixed missing translations
- Fixed bug when matugen not installed in setup wizard
- Added enabled property for NToggle
This commit is contained in:
ItsLemmy
2025-10-20 13:33:46 -04:00
parent 621b37cd1f
commit 73267d1d37
14 changed files with 138 additions and 148 deletions
+8
View File
@@ -9,6 +9,7 @@ RowLayout {
property string label: ""
property string description: ""
property bool enabled: true
property bool checked: false
property bool hovering: false
property int baseSize: Math.round(Style.baseWidgetSize * 0.8 * Style.uiScaleRatio)
@@ -18,6 +19,7 @@ RowLayout {
signal exited
Layout.fillWidth: true
opacity: enabled ? 1.0 : 0.6
NLabel {
label: root.label
@@ -71,14 +73,20 @@ RowLayout {
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: {
if (!enabled)
return
hovering = true
root.entered()
}
onExited: {
if (!enabled)
return
hovering = false
root.exited()
}
onClicked: {
if (!enabled)
return
root.toggled(!root.checked)
}
}