ControlCenter: add volume controls

This commit is contained in:
lysec
2025-10-10 14:51:42 +02:00
parent 2d13e60fa5
commit 7a403bbdde
2 changed files with 197 additions and 1 deletions
+8 -1
View File
@@ -11,7 +11,7 @@ NPanel {
id: root
preferredWidth: 400
preferredHeight: topHeight + midHeight + bottomHeight + Math.round(Style.marginL * 4)
preferredHeight: topHeight + midHeight + bottomHeight + audioHeight + Math.round(Style.marginL * 5)
panelKeyboardFocus: true
readonly property int topHeight: {
@@ -31,6 +31,7 @@ NPanel {
}
readonly property int midHeight: 220
readonly property int bottomHeight: 80
readonly property int audioHeight: 120
// Positioning
readonly property string controlCenterPosition: Settings.data.controlCenter.position
@@ -60,6 +61,12 @@ NPanel {
Layout.preferredHeight: topHeight * scaling
}
// Audio controls card
AudioCard {
Layout.fillWidth: true
Layout.preferredHeight: audioHeight * scaling
}
// Media card
MediaCard {
Layout.fillWidth: true