diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 17:16:14 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 17:16:14 +0800 |
| commit | b520eb490c7b99659bdb685995e5ad4a3507cbb3 (patch) | |
| tree | bc11bb0a8c48df3347cbb4766851aa6d92dc971a /bar/Mpris.qml | |
| parent | 8127908623a6f1737537a7b53d479bf9039a4afd (diff) | |
workspace more fix + activewindow]
Diffstat (limited to 'bar/Mpris.qml')
| -rw-r--r-- | bar/Mpris.qml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 8d56335..5abd2d4 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -46,10 +46,27 @@ Item { } } - Text { + implicitWidth: rect.width + 3 // +3 cause it look better somehow + + // TODO fancy animation progress bar etc. + Rectangle { + id: rect anchors.verticalCenter: parent.verticalCenter - text: root.state + " " + root.cleanedTitle + " [" + root.progress + "]" + // TODO: move to IRect + implicitWidth: text.width + General.rectMargin * 2 + implicitHeight: parent.height + color: Colors.alt + radius: Style.rounding.smaller + Text { + id: text + // TODO: use IText + font.pixelSize: General.fontSize + anchors.centerIn: parent + anchors.verticalCenter: parent.verticalCenter + text: root.state + " " + root.cleanedTitle + " [" + root.progress + "]" + } } + // hover // Text { // text: root.activePlayer.trackTitle + " by " + root.activePlayer.trackArtist + " - " + root.activePlayer.trackAlbum + root.activePlayer.position + "/" + root.activePlayer.length |
