From 18058407181e0f4114a4ef49a1796884c5661969 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 3 Aug 2025 23:44:51 +1000 Subject: dcontent: add audio placeholder Also clip panes --- modules/detachedcontent/NavRail.qml | 5 +++++ modules/detachedcontent/Panes.qml | 14 ++++++++++++++ modules/detachedcontent/Session.qml | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/detachedcontent/NavRail.qml b/modules/detachedcontent/NavRail.qml index 7658aaa..de654d2 100644 --- a/modules/detachedcontent/NavRail.qml +++ b/modules/detachedcontent/NavRail.qml @@ -91,6 +91,11 @@ Item { icon: "settings_bluetooth" label: "bluetooth" } + + NavItem { + icon: "tune" + label: "audio" + } } component NavItem: Item { diff --git a/modules/detachedcontent/Panes.qml b/modules/detachedcontent/Panes.qml index 912382c..d26a71d 100644 --- a/modules/detachedcontent/Panes.qml +++ b/modules/detachedcontent/Panes.qml @@ -43,6 +43,19 @@ ClippingRectangle { } } + 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 @@ -69,6 +82,7 @@ ClippingRectangle { id: loader anchors.fill: parent + clip: true asynchronous: true active: { if (root.session.activeIndex === pane.index) diff --git a/modules/detachedcontent/Session.qml b/modules/detachedcontent/Session.qml index c737518..0c3f1b4 100644 --- a/modules/detachedcontent/Session.qml +++ b/modules/detachedcontent/Session.qml @@ -2,7 +2,7 @@ import Quickshell.Bluetooth import QtQuick QtObject { - readonly property list panes: ["network", "bluetooth"] + readonly property list panes: ["network", "bluetooth", "audio"] property string active property int activeIndex -- cgit v1.2.3-freya