mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
32 lines
849 B
QML
32 lines
849 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
NToggle {
|
|
label: I18n.tr("settings.lock-screen.lock-on-suspend.label")
|
|
description: I18n.tr("settings.lock-screen.lock-on-suspend.description")
|
|
checked: Settings.data.general.lockOnSuspend
|
|
onToggled: Settings.data.general.lockOnSuspend = checked
|
|
}
|
|
|
|
NToggle {
|
|
label: I18n.tr("settings.lock-screen.compact-lockscreen.label")
|
|
description: I18n.tr("settings.lock-screen.compact-lockscreen.description")
|
|
checked: Settings.data.general.compactLockScreen
|
|
onToggled: checked => Settings.data.general.compactLockScreen = checked
|
|
}
|
|
|
|
NDivider {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: Style.marginXL
|
|
Layout.bottomMargin: Style.marginXL
|
|
}
|
|
}
|