summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
committerNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
commita2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch)
tree1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml
parent34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff)
downloadRaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz
RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml87
1 files changed, 0 insertions, 87 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml
deleted file mode 100644
index 064f578..0000000
--- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankBar/Popouts/VpnPopout.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-import QtQuick
-import QtQuick.Layouts
-import qs.Common
-import qs.Services
-import qs.Widgets
-
-DankPopout {
- id: root
-
- layerNamespace: "dms:vpn"
-
- Ref {
- service: DMSNetworkService
- }
-
- property bool wasVisible: false
- property var triggerScreen: null
-
- popupWidth: 380
- popupHeight: Math.min((screen ? screen.height : Screen.height) - 100, contentLoader.item ? contentLoader.item.implicitHeight : 320)
- triggerWidth: 70
- screen: triggerScreen
- shouldBeVisible: false
-
- onShouldBeVisibleChanged: {
- if (shouldBeVisible && !wasVisible) {
- DMSNetworkService.getState();
- }
- wasVisible = shouldBeVisible;
- }
-
- onBackgroundClicked: close()
-
- content: Component {
- Rectangle {
- id: content
-
- implicitHeight: contentColumn.height + Theme.spacingL * 2
- color: "transparent"
- focus: true
-
- Keys.onPressed: event => {
- if (event.key === Qt.Key_Escape) {
- root.close();
- event.accepted = true;
- }
- }
-
- Column {
- id: contentColumn
-
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.margins: Theme.spacingL
- spacing: Theme.spacingM
-
- RowLayout {
- width: parent.width
- height: 32
- spacing: Theme.spacingS
-
- StyledText {
- text: I18n.tr("VPN Connections")
- font.pixelSize: Theme.fontSizeLarge
- color: Theme.surfaceText
- font.weight: Font.Medium
- Layout.fillWidth: true
- }
-
- DankActionButton {
- iconName: "close"
- iconSize: Theme.iconSize - 4
- iconColor: Theme.surfaceText
- onClicked: root.close()
- }
- }
-
- VpnDetailContent {
- width: parent.width
- listHeight: 200
- parentPopout: root
- }
- }
- }
- }
-}