diff options
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/island/Island.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/island/Island.qml b/desktop/island/Island.qml index d5abf57..12f49ea 100644 --- a/desktop/island/Island.qml +++ b/desktop/island/Island.qml @@ -326,10 +326,14 @@ PanelWindow { } // While something plays or is paused; it sits left of the clock pill and - // follows it as the calendar widens it. + // follows it as the calendar widens it. Hidden outright while the island + // is retracted: opacity 0 alone leaves it visible, and its marquee then + // animated off-screen for as long as anything played, repainting the + // island every frame (measured at 42% of a core, idle). MediaPill { id: media - visible: Player.playing || Player.current?.playbackState === MprisPlaybackState.Paused + visible: win.reveal > 0 + && (Player.playing || Player.current?.playbackState === MprisPlaybackState.Paused) x: win.cx - width / 2 - (win.gap * 1.5 + clock.width + width / 2) * win.reveal y: -height + (win.top + height) * win.reveal opacity: Math.min(1, win.reveal * 2) |
