diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
| commit | 982a5a3e8de4abb322b53ea0bf77b5e57860540f (patch) | |
| tree | 59bff3a6eb8ea4c8de6d208465d0ea1361f15465 /modules/detachedcontent/DetachedContent.qml | |
| parent | internal: better styled switch (diff) | |
| download | caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.gz caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.bz2 caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.zip | |
dcontent: create bluetooth panel
Diffstat (limited to 'modules/detachedcontent/DetachedContent.qml')
| -rw-r--r-- | modules/detachedcontent/DetachedContent.qml | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/modules/detachedcontent/DetachedContent.qml b/modules/detachedcontent/DetachedContent.qml new file mode 100644 index 0000000..4226917 --- /dev/null +++ b/modules/detachedcontent/DetachedContent.qml @@ -0,0 +1,98 @@ +pragma ComponentBehavior: Bound + +import qs.widgets +import qs.services +import qs.config +import Quickshell +import QtQuick +import QtQuick.Layouts +import QtQuick.Effects + +Item { + id: root + + required property ShellScreen screen + property alias active: session.active + readonly property Session session: Session { + id: session + } + + implicitWidth: implicitHeight * Config.dcontent.sizes.ratio + implicitHeight: screen.height * Config.dcontent.sizes.heightMult + + GridLayout { + anchors.fill: parent + + rows: 2 + columns: 2 + rowSpacing: 0 + columnSpacing: 0 + + StyledRect { + Layout.fillHeight: true + Layout.rowSpan: 2 + + topLeftRadius: Appearance.rounding.normal + bottomLeftRadius: Appearance.rounding.normal + implicitWidth: navRail.implicitWidth + color: Colours.palette.m3surfaceContainer + + NavRail { + id: navRail + + session: root.session + } + } + + StyledRect { + Layout.fillWidth: true + implicitHeight: 50 + topRightRadius: Appearance.rounding.normal + color: Colours.palette.m3surfaceContainer + } + + Item { + Layout.fillWidth: true + Layout.fillHeight: true + + StyledText { + anchors.centerIn: parent + text: qsTr("Work in progress") + color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.extraLarge + font.weight: 500 + } + + StyledRect { + anchors.fill: parent + color: Colours.palette.m3surfaceContainer + bottomRightRadius: Appearance.rounding.normal + + layer.enabled: true + layer.effect: MultiEffect { + maskSource: mask + maskEnabled: true + maskInverted: true + maskThresholdMin: 0.5 + maskSpreadAtMin: 1 + } + } + + Item { + id: mask + + anchors.fill: parent + layer.enabled: true + visible: false + + Rectangle { + anchors.fill: parent + anchors.margins: Appearance.padding.normal + anchors.topMargin: 0 + anchors.leftMargin: 0 + radius: Appearance.rounding.small + } + } + } + } +} |