diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-22 09:02:54 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-22 09:02:54 -0500 |
| commit | 25039abf05be0f1381fa74eb0a05032b1d636126 (patch) | |
| tree | 70b4b545756a2535e9bb2230376ff93945aab0df /modules/controlcenter/network/NetworkSettings.qml | |
| parent | remove lockscreen (diff) | |
| download | caelestia-shell-25039abf05be0f1381fa74eb0a05032b1d636126.tar.gz caelestia-shell-25039abf05be0f1381fa74eb0a05032b1d636126.tar.bz2 caelestia-shell-25039abf05be0f1381fa74eb0a05032b1d636126.zip | |
Diffstat (limited to 'modules/controlcenter/network/NetworkSettings.qml')
| -rw-r--r-- | modules/controlcenter/network/NetworkSettings.qml | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/modules/controlcenter/network/NetworkSettings.qml b/modules/controlcenter/network/NetworkSettings.qml index 04746af..81175fb 100644 --- a/modules/controlcenter/network/NetworkSettings.qml +++ b/modules/controlcenter/network/NetworkSettings.qml @@ -63,45 +63,6 @@ ColumnLayout { SectionHeader { Layout.topMargin: Appearance.spacing.large - title: qsTr("VPN") - description: qsTr("VPN provider settings") - visible: Config.utilities.vpn.enabled || Config.utilities.vpn.provider.length > 0 - } - - SectionContainer { - visible: Config.utilities.vpn.enabled || Config.utilities.vpn.provider.length > 0 - - ToggleRow { - label: qsTr("VPN enabled") - checked: Config.utilities.vpn.enabled - toggle.onToggled: { - Config.utilities.vpn.enabled = checked; - Config.save(); - } - } - - PropertyRow { - showTopMargin: true - label: qsTr("Providers") - value: qsTr("%1").arg(Config.utilities.vpn.provider.length) - } - - TextButton { - Layout.fillWidth: true - Layout.topMargin: Appearance.spacing.normal - Layout.minimumHeight: Appearance.font.size.normal + Appearance.padding.normal * 2 - text: qsTr("⚙ Manage VPN Providers") - inactiveColour: Colours.palette.m3secondaryContainer - inactiveOnColour: Colours.palette.m3onSecondaryContainer - - onClicked: { - vpnSettingsDialog.open(); - } - } - } - - SectionHeader { - Layout.topMargin: Appearance.spacing.large title: qsTr("Current connection") description: qsTr("Active network connection information") } @@ -135,38 +96,5 @@ ColumnLayout { value: Nmcli.active ? qsTr("%1 MHz").arg(Nmcli.active.frequency) : qsTr("N/A") } } - - Popup { - id: vpnSettingsDialog - - parent: Overlay.overlay - anchors.centerIn: parent - width: Math.min(600, parent.width - Appearance.padding.large * 2) - height: Math.min(700, parent.height - Appearance.padding.large * 2) - - modal: true - closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside - - background: StyledRect { - color: Colours.palette.m3surface - radius: Appearance.rounding.large - } - - StyledFlickable { - anchors.fill: parent - anchors.margins: Appearance.padding.large * 1.5 - flickableDirection: Flickable.VerticalFlick - contentHeight: vpnSettingsContent.height - clip: true - - VpnSettings { - id: vpnSettingsContent - - anchors.left: parent.left - anchors.right: parent.right - session: root.session - } - } - } } |