dcontent: add audio placeholder

Also clip panes
This commit is contained in:
2 * r + 2 * t 2025-08-03 23:44:51 +10:00
parent 9a5a14e8cf
commit 1805840718
3 changed files with 20 additions and 1 deletions

View file

@ -91,6 +91,11 @@ Item {
icon: "settings_bluetooth"
label: "bluetooth"
}
NavItem {
icon: "tune"
label: "audio"
}
}
component NavItem: Item {

View file

@ -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)

View file

@ -2,7 +2,7 @@ import Quickshell.Bluetooth
import QtQuick
QtObject {
readonly property list<string> panes: ["network", "bluetooth"]
readonly property list<string> panes: ["network", "bluetooth", "audio"]
property string active
property int activeIndex