mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user