1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 05:55:37 -05:00

Fix audio tab in control center

- Swap between input and output components properly in loader
This commit is contained in:
bbedward
2025-08-13 19:13:36 -04:00
parent eb666477b9
commit f399bb1916

View File

@@ -33,64 +33,62 @@ Item {
} }
} }
// Output Tab - Loader // Single Loader that switches between Output and Input
Loader { Loader {
width: parent.width width: parent.width
height: parent.height - 48 height: parent.height - 48
active: audioTab.audioSubTab === 0
asynchronous: true asynchronous: true
sourceComponent: Component { sourceComponent: audioTab.audioSubTab === 0 ? outputTabComponent : inputTabComponent
DankFlickable { }
clip: true }
contentHeight: outputColumn.height
contentWidth: width
Column { // Output Tab Component
id: outputColumn Component {
width: parent.width id: outputTabComponent
spacing: Theme.spacingL DankFlickable {
clip: true
contentHeight: outputColumn.height
contentWidth: width
Loader { Column {
width: parent.width id: outputColumn
sourceComponent: volumeComponent width: parent.width
} spacing: Theme.spacingL
Loader { Loader {
width: parent.width width: parent.width
sourceComponent: outputDevicesComponent sourceComponent: volumeComponent
} }
}
Loader {
width: parent.width
sourceComponent: outputDevicesComponent
} }
} }
} }
}
// Input Tab - Loader // Input Tab Component
Loader { Component {
width: parent.width id: inputTabComponent
height: parent.height - 48 DankFlickable {
active: audioTab.audioSubTab === 1 clip: true
asynchronous: true contentHeight: inputColumn.height
sourceComponent: Component { contentWidth: width
DankFlickable {
clip: true
contentHeight: inputColumn.height
contentWidth: width
Column { Column {
id: inputColumn id: inputColumn
width: parent.width width: parent.width
spacing: Theme.spacingL spacing: Theme.spacingL
Loader { Loader {
width: parent.width width: parent.width
sourceComponent: microphoneComponent sourceComponent: microphoneComponent
} }
Loader { Loader {
width: parent.width width: parent.width
sourceComponent: inputDevicesComponent sourceComponent: inputDevicesComponent
}
}
} }
} }
} }