From e36fb678db52dd10898c6e9dde381c08acb5405e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:28:26 +1000 Subject: dashboard: fix blurry media pane --- modules/dashboard/Media.qml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 2d004d5..105cd24 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -10,6 +10,7 @@ import Quickshell.Services.Mpris import QtQuick import QtQuick.Controls import QtQuick.Effects +import QtQuick.Layouts Item { id: root @@ -145,7 +146,7 @@ Item { } } - Column { + ColumnLayout { id: details anchors.verticalCenter: parent.verticalCenter @@ -157,7 +158,7 @@ Item { StyledText { id: title - anchors.horizontalCenter: parent.horizontalCenter + Layout.alignment: Qt.AlignHCenter animate: true horizontalAlignment: Text.AlignHCenter @@ -172,7 +173,7 @@ Item { StyledText { id: album - anchors.horizontalCenter: parent.horizontalCenter + Layout.alignment: Qt.AlignHCenter animate: true horizontalAlignment: Text.AlignHCenter @@ -187,7 +188,7 @@ Item { StyledText { id: artist - anchors.horizontalCenter: parent.horizontalCenter + Layout.alignment: Qt.AlignHCenter animate: true horizontalAlignment: Text.AlignHCenter @@ -201,7 +202,7 @@ Item { Row { id: controls - anchors.horizontalCenter: parent.horizontalCenter + Layout.alignment: Qt.AlignHCenter spacing: Appearance.spacing.small @@ -299,9 +300,7 @@ Item { } Item { - anchors.left: parent.left - anchors.right: parent.right - + Layout.fillWidth: true implicitHeight: Math.max(position.implicitHeight, length.implicitHeight) StyledText { @@ -325,9 +324,8 @@ Item { } } - Row { - anchors.horizontalCenter: parent.horizontalCenter - + RowLayout { + Layout.alignment: Qt.AlignHCenter spacing: Appearance.spacing.small Control { @@ -349,7 +347,7 @@ Item { property bool expanded - anchors.verticalCenter: parent.verticalCenter + Layout.alignment: Qt.AlignVCenter implicitWidth: slider.implicitWidth / 2 implicitHeight: currentPlayer.implicitHeight + Appearance.padding.small * 2 -- cgit v1.2.3-freya