From e86931545352387e7a8c5929dee2e9934d042800 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 21:51:30 +0800 Subject: finish style bar(almost) --- bar/Mpris.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bar/Mpris.qml') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 8a784c8..a3145aa 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -9,7 +9,6 @@ import qs.config Item { id: root - height: Bar.height readonly property MprisPlayer activePlayer: Services.Mpris.activePlayer readonly property string cleanedTitle: cleanMusicTitle(activePlayer?.trackTitle) || qsTr("No media") // length broken (https://github.com/quickshell-mirror/quickshell/issues/109) @@ -46,8 +45,8 @@ Item { } } - implicitWidth: rect.width + 3 // +3 cause it look better somehow - implicitHeight: Bar.height + implicitWidth: rect.width - General.rectMargin / 2 + height: Bar.height + General.rectMargin / 2 // TODO fancy animation progress bar etc. Rectangle { @@ -55,7 +54,7 @@ Item { anchors.verticalCenter: parent.verticalCenter // TODO: move to IRect implicitWidth: text.width + General.rectMargin * 2 - implicitHeight: parent.height - General.rectMargin + height: parent.height - General.rectMargin color: Colors.alt radius: Style.rounding.smaller Text { -- cgit v1.2.3