MediaPlayerPanel: fix cava display issue

This commit is contained in:
Lysec
2026-02-14 03:42:10 +01:00
parent b7f816bde9
commit f1cd4e18a6
+9 -8
View File
@@ -69,14 +69,7 @@ SmartPanel {
readonly property real contentPreferredHeight: (root.compactMode ? 240 : (root.showAlbumArt ? 560 : 300)) * Style.uiScaleRatio
Loader {
id: visualizerLoaderCompact
anchors.fill: parent
anchors.margins: Style.marginL
z: 0
active: !!(root.needsCava && !root.showAlbumArt)
sourceComponent: visualizerSource
}
// Old loader removed from here
property Component visualizerSource: {
switch (root.visualizerType) {
@@ -235,6 +228,14 @@ SmartPanel {
Layout.fillWidth: true
Layout.fillHeight: true
// Visualizer background for content area
Loader {
anchors.fill: parent
z: 0
active: !!(root.needsCava && !root.showAlbumArt)
sourceComponent: visualizerSource
}
GridLayout {
anchors.fill: parent
anchors.leftMargin: root.compactMode ? Style.marginL : Style.marginM