mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
MediaPlayerPanel: layout adjustments
This commit is contained in:
@@ -14,15 +14,7 @@ SmartPanel {
|
||||
id: root
|
||||
|
||||
preferredWidth: Math.round((root.isSideBySide ? 480 : 400) * Style.uiScaleRatio)
|
||||
preferredHeight: {
|
||||
// Base content heights
|
||||
const baseHeight = root.compactMode ? 220 : (root.showAlbumArt ? 520 : 260);
|
||||
// Account for mainLayout margins (Style.marginL * 2) which are already scaled
|
||||
const marginL = 13; // Base value from Style.qml before uiScaleRatio
|
||||
// Account for timestamp labels below progress slider (fontSizeXS ~9px + 2px topMargin)
|
||||
const timestampHeight = 11;
|
||||
return Math.round((baseHeight + marginL * 2 + timestampHeight) * Style.uiScaleRatio);
|
||||
}
|
||||
preferredHeight: Math.round((root.compactMode ? 240 : (root.showAlbumArt ? 560 : 300)) * Style.uiScaleRatio)
|
||||
|
||||
readonly property var mediaMiniSettings: {
|
||||
try {
|
||||
@@ -75,12 +67,7 @@ SmartPanel {
|
||||
id: playerContent
|
||||
anchors.fill: parent
|
||||
|
||||
readonly property real contentPreferredHeight: {
|
||||
const baseHeight = (root.compactMode ? 220 : (root.showAlbumArt ? 520 : 260));
|
||||
const marginL = 13;
|
||||
const timestampHeight = 11;
|
||||
return (baseHeight + marginL * 2 + timestampHeight) * Style.uiScaleRatio;
|
||||
}
|
||||
readonly property real contentPreferredHeight: (root.compactMode ? 240 : (root.showAlbumArt ? 560 : 300)) * Style.uiScaleRatio
|
||||
|
||||
Loader {
|
||||
id: visualizerLoaderCompact
|
||||
|
||||
Reference in New Issue
Block a user