diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 21:51:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 21:51:30 +0800 |
| commit | e86931545352387e7a8c5929dee2e9934d042800 (patch) | |
| tree | 52935af186e3592241bc9096e093e9d34bb0c365 /bar/Mpris.qml | |
| parent | 8e31e45ffa1b0029c91556ca29337eb7162dfd1d (diff) | |
finish style bar(almost)
Diffstat (limited to 'bar/Mpris.qml')
| -rw-r--r-- | bar/Mpris.qml | 7 |
1 files changed, 3 insertions, 4 deletions
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 { |
