summaryrefslogtreecommitdiff
path: root/modules/controlcenter/components/SplitPaneLayout.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
committerFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
commitbb6717666a669aa81cda28896ed292ca5af55ece (patch)
tree5f3c5fed20fd3bf8fe38e10d7e09b81558c64a79 /modules/controlcenter/components/SplitPaneLayout.qml
parentadd date to clock (diff)
downloadcaelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.gz
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.bz2
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.zip
change things
Diffstat (limited to 'modules/controlcenter/components/SplitPaneLayout.qml')
-rw-r--r--modules/controlcenter/components/SplitPaneLayout.qml109
1 files changed, 0 insertions, 109 deletions
diff --git a/modules/controlcenter/components/SplitPaneLayout.qml b/modules/controlcenter/components/SplitPaneLayout.qml
deleted file mode 100644
index 89504a0..0000000
--- a/modules/controlcenter/components/SplitPaneLayout.qml
+++ /dev/null
@@ -1,109 +0,0 @@
-pragma ComponentBehavior: Bound
-
-import qs.components
-import qs.components.effects
-import qs.config
-import Quickshell.Widgets
-import QtQuick
-import QtQuick.Layouts
-
-RowLayout {
- id: root
-
- spacing: 0
-
- property Component leftContent: null
- property Component rightContent: null
-
- property real leftWidthRatio: 0.4
- property int leftMinimumWidth: 420
- property var leftLoaderProperties: ({})
- property var rightLoaderProperties: ({})
-
- property alias leftLoader: leftLoader
- property alias rightLoader: rightLoader
-
- Item {
- id: leftPane
-
- Layout.preferredWidth: Math.floor(parent.width * root.leftWidthRatio)
- Layout.minimumWidth: root.leftMinimumWidth
- Layout.fillHeight: true
-
- ClippingRectangle {
- id: leftClippingRect
-
- anchors.fill: parent
- anchors.margins: Appearance.padding.normal
- anchors.leftMargin: 0
- anchors.rightMargin: Appearance.padding.normal / 2
-
- radius: leftBorder.innerRadius
- color: "transparent"
-
- Loader {
- id: leftLoader
-
- anchors.fill: parent
- anchors.margins: Appearance.padding.large + Appearance.padding.normal
- anchors.leftMargin: Appearance.padding.large
- anchors.rightMargin: Appearance.padding.large + Appearance.padding.normal / 2
-
- sourceComponent: root.leftContent
-
- Component.onCompleted: {
- for (const key in root.leftLoaderProperties) {
- leftLoader[key] = root.leftLoaderProperties[key];
- }
- }
- }
- }
-
- InnerBorder {
- id: leftBorder
-
- leftThickness: 0
- rightThickness: Appearance.padding.normal / 2
- }
- }
-
- Item {
- id: rightPane
-
- Layout.fillWidth: true
- Layout.fillHeight: true
-
- ClippingRectangle {
- id: rightClippingRect
-
- anchors.fill: parent
- anchors.margins: Appearance.padding.normal
- anchors.leftMargin: 0
- anchors.rightMargin: Appearance.padding.normal / 2
-
- radius: rightBorder.innerRadius
- color: "transparent"
-
- Loader {
- id: rightLoader
-
- anchors.fill: parent
- anchors.margins: Appearance.padding.large * 2
-
- sourceComponent: root.rightContent
-
- Component.onCompleted: {
- for (const key in root.rightLoaderProperties) {
- rightLoader[key] = root.rightLoaderProperties[key];
- }
- }
- }
- }
-
- InnerBorder {
- id: rightBorder
-
- leftThickness: Appearance.padding.normal / 2
- }
- }
-}