dcontent: add audio placeholder
Also clip panes
This commit is contained in:
parent
9a5a14e8cf
commit
1805840718
3 changed files with 20 additions and 1 deletions
|
|
@ -91,6 +91,11 @@ Item {
|
||||||
icon: "settings_bluetooth"
|
icon: "settings_bluetooth"
|
||||||
label: "bluetooth"
|
label: "bluetooth"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NavItem {
|
||||||
|
icon: "tune"
|
||||||
|
label: "audio"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
component NavItem: Item {
|
component NavItem: Item {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
Behavior on y {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.anim.durations.normal
|
duration: Appearance.anim.durations.normal
|
||||||
|
|
@ -69,6 +82,7 @@ ClippingRectangle {
|
||||||
id: loader
|
id: loader
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
clip: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
active: {
|
active: {
|
||||||
if (root.session.activeIndex === pane.index)
|
if (root.session.activeIndex === pane.index)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import Quickshell.Bluetooth
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
readonly property list<string> panes: ["network", "bluetooth"]
|
readonly property list<string> panes: ["network", "bluetooth", "audio"]
|
||||||
|
|
||||||
property string active
|
property string active
|
||||||
property int activeIndex
|
property int activeIndex
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue