diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-12 16:36:42 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-12 16:36:42 -0500 |
| commit | 893a91a95a11cb57ffe2fbfa0ec221c1a309528b (patch) | |
| tree | 93ffc258a9ef2b5ea1bd8ef9109e48991844f1af /components/SectionContainer.qml | |
| parent | controlcenter: refactoring into components (diff) | |
| download | caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.tar.gz caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.tar.bz2 caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.zip | |
controlcenter: refactored wifi/ethernet panels
Diffstat (limited to 'components/SectionContainer.qml')
| -rw-r--r-- | components/SectionContainer.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/components/SectionContainer.qml b/components/SectionContainer.qml new file mode 100644 index 0000000..d41254b --- /dev/null +++ b/components/SectionContainer.qml @@ -0,0 +1,31 @@ +import qs.components +import qs.components.effects +import qs.services +import qs.config +import QtQuick +import QtQuick.Layouts + +StyledRect { + id: root + + default property alias content: contentColumn.data + property real contentSpacing: Appearance.spacing.larger + + Layout.fillWidth: true + implicitHeight: contentColumn.implicitHeight + Appearance.padding.large * 2 + + radius: Appearance.rounding.normal + color: Colours.tPalette.m3surfaceContainer + + ColumnLayout { + id: contentColumn + + anchors.left: parent.left + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + anchors.margins: Appearance.padding.large + + spacing: root.contentSpacing + } +} + |