mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-05 22:06:23 +00:00
36 lines
812 B
QML
36 lines
812 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Bluetooth
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
spacing: Style.marginL * scaling
|
|
|
|
NHeader {
|
|
description: I18n.tr("settings.network.section.description")
|
|
}
|
|
|
|
NToggle {
|
|
label: I18n.tr("settings.network.wifi.label")
|
|
checked: Settings.data.network.wifiEnabled
|
|
onToggled: checked => NetworkService.setWifiEnabled(checked)
|
|
}
|
|
|
|
NToggle {
|
|
label: I18n.tr("settings.network.bluetooth.label")
|
|
checked: BluetoothService.enabled
|
|
onToggled: checked => BluetoothService.setBluetoothEnabled(checked)
|
|
}
|
|
|
|
NDivider {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: Style.marginXL * scaling
|
|
Layout.bottomMargin: Style.marginXL * scaling
|
|
}
|
|
}
|