From 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 Mon Sep 17 00:00:00 2001 From: AlexanderCurl Date: Sat, 18 Apr 2026 17:46:06 +0100 Subject: Replaced file structures for themes in the correct format --- .../quickshell/Widgets/FloatingWindowControls.qml | 118 --------------------- 1 file changed, 118 deletions(-) delete mode 100644 raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/FloatingWindowControls.qml (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/FloatingWindowControls.qml') diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/FloatingWindowControls.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/FloatingWindowControls.qml deleted file mode 100644 index b56291e..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/FloatingWindowControls.qml +++ /dev/null @@ -1,118 +0,0 @@ -import QtQuick - -Item { - id: root - - readonly property real edgeSize: 8 - required property var targetWindow - property bool supported: typeof targetWindow.startSystemMove === "function" - readonly property bool canMaximize: targetWindow.minimumSize.width !== targetWindow.maximumSize.width || targetWindow.minimumSize.height !== targetWindow.maximumSize.height - - anchors.fill: parent - - function tryStartMove() { - if (!supported) - return; - targetWindow.startSystemMove(); - } - - function tryStartResize(edges) { - if (!supported || !canMaximize) - return; - targetWindow.startSystemResize(edges); - } - - function tryToggleMaximize() { - if (!supported || !canMaximize) - return; - targetWindow.maximized = !targetWindow.maximized; - } - - MouseArea { - visible: root.supported && root.canMaximize - height: root.edgeSize - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.leftMargin: 6 - anchors.rightMargin: 6 - cursorShape: Qt.SizeVerCursor - onPressed: root.tryStartResize(Qt.TopEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - anchors.left: parent.left - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.topMargin: 6 - anchors.bottomMargin: 6 - cursorShape: Qt.SizeHorCursor - onPressed: root.tryStartResize(Qt.LeftEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.topMargin: 6 - anchors.bottomMargin: 6 - cursorShape: Qt.SizeHorCursor - onPressed: root.tryStartResize(Qt.RightEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - height: root.edgeSize - anchors.left: parent.left - anchors.top: parent.top - cursorShape: Qt.SizeFDiagCursor - onPressed: root.tryStartResize(Qt.LeftEdge | Qt.TopEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - height: root.edgeSize - anchors.right: parent.right - anchors.top: parent.top - cursorShape: Qt.SizeBDiagCursor - onPressed: root.tryStartResize(Qt.RightEdge | Qt.TopEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - height: root.edgeSize - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - anchors.leftMargin: 6 - anchors.rightMargin: 6 - cursorShape: Qt.SizeVerCursor - onPressed: root.tryStartResize(Qt.BottomEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - height: root.edgeSize - anchors.left: parent.left - anchors.bottom: parent.bottom - cursorShape: Qt.SizeBDiagCursor - onPressed: root.tryStartResize(Qt.LeftEdge | Qt.BottomEdge) - } - - MouseArea { - visible: root.supported && root.canMaximize - width: root.edgeSize - height: root.edgeSize - anchors.right: parent.right - anchors.bottom: parent.bottom - cursorShape: Qt.SizeFDiagCursor - onPressed: root.tryStartResize(Qt.RightEdge | Qt.BottomEdge) - } -} -- cgit v1.3