From fb650907a0b18fab4f996c2fdc110d2d091e4060 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:19:58 +1000 Subject: internal: rename dcontent -> controlcenter --- modules/detachedcontent/Panes.qml | 98 --------------------------------------- 1 file changed, 98 deletions(-) delete mode 100644 modules/detachedcontent/Panes.qml (limited to 'modules/detachedcontent/Panes.qml') diff --git a/modules/detachedcontent/Panes.qml b/modules/detachedcontent/Panes.qml deleted file mode 100644 index d1ec581..0000000 --- a/modules/detachedcontent/Panes.qml +++ /dev/null @@ -1,98 +0,0 @@ -pragma ComponentBehavior: Bound - -import "bluetooth" -import qs.components -import qs.components.effects -import qs.services -import qs.config -import Quickshell.Widgets -import QtQuick -import QtQuick.Layouts - -ClippingRectangle { - id: root - - required property Session session - - topRightRadius: Appearance.rounding.normal - bottomRightRadius: Appearance.rounding.normal - color: "transparent" - - ColumnLayout { - id: layout - - spacing: 0 - y: -root.session.activeIndex * root.height - - Pane { - index: 0 - sourceComponent: Item { - StyledText { - anchors.centerIn: parent - text: qsTr("Work in progress") - color: Colours.palette.m3outline - font.pointSize: Appearance.font.size.extraLarge - font.weight: 500 - } - } - } - - Pane { - index: 1 - sourceComponent: BtPane { - session: root.session - } - } - - Pane { - index: 2 - sourceComponent: Item { - StyledText { - anchors.centerIn: parent - text: qsTr("Work in progress") - color: Colours.palette.m3outline - font.pointSize: Appearance.font.size.extraLarge - font.weight: 500 - } - } - } - - Behavior on y { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } - } - - InnerBorder { - leftThickness: 0 - } - - component Pane: Item { - id: pane - - required property int index - property alias sourceComponent: loader.sourceComponent - - implicitWidth: root.width - implicitHeight: root.height - - Loader { - id: loader - - anchors.fill: parent - clip: true - asynchronous: true - active: { - if (root.session.activeIndex === pane.index) - return true; - - const ly = -layout.y; - const ty = pane.index * root.height; - return ly + root.height > ty && ly < ty + root.height; - } - } - } -} -- cgit v1.2.3-freya