mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
MediaPlayerPanel: fix cava display issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user