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:
@@ -33,13 +33,18 @@ 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Output Tab Component
|
||||||
|
Component {
|
||||||
|
id: outputTabComponent
|
||||||
DankFlickable {
|
DankFlickable {
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: outputColumn.height
|
contentHeight: outputColumn.height
|
||||||
@@ -62,15 +67,10 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Input Tab - Loader
|
// Input Tab Component
|
||||||
Loader {
|
Component {
|
||||||
width: parent.width
|
id: inputTabComponent
|
||||||
height: parent.height - 48
|
|
||||||
active: audioTab.audioSubTab === 1
|
|
||||||
asynchronous: true
|
|
||||||
sourceComponent: Component {
|
|
||||||
DankFlickable {
|
DankFlickable {
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: inputColumn.height
|
contentHeight: inputColumn.height
|
||||||
@@ -93,8 +93,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Volume Control Component
|
// Volume Control Component
|
||||||
Component {
|
Component {
|
||||||
|
|||||||
Reference in New Issue
Block a user