diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-28 19:00:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-28 19:00:25 +0800 |
| commit | f96179f58d71f7cdb2b8652ed2b3516c2285ba4c (patch) | |
| tree | 4d54742742623bde22a066cb01813ce7db68c7ff /bar | |
| parent | d33f80aee73a9799ae18fe42c3f72b89d0678709 (diff) | |
mpris: use color alpha channel for transparency instead of opacity
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Mpris.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 23c7c2f..d4289ae 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -142,8 +142,7 @@ Item { } IText { animate: true - opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity - color: activePlayer?.playbackState === MprisPlaybackState.Playing ? Colors.foreground1 : Colors.foreground2 + color: activePlayer?.playbackState === MprisPlaybackState.Playing ? Qt.rgba(Colors.foreground1.r, Colors.foreground1.g, Colors.foreground1.b, Colors.foreground1.a) : Qt.rgba(Colors.foreground2.r, Colors.foreground2.g, Colors.foreground2.b, Bar.mediaPausedOpacity) text: root.cleanedTitle Behavior on opacity { |
