mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 02:18:16 -07:00
Merge pull request #4894 from vincent/bugfix/3901-paused-visualizer-animation
Show a different icon when the player is paused
This commit is contained in:
commit
4882d9c8cc
BIN
src/assets/img/equalizer-paused.png
Normal file
BIN
src/assets/img/equalizer-paused.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 539 B |
@ -455,6 +455,11 @@ export default function () {
|
||||
btnPlayPauseIcon.classList.remove('play_circle_filled', 'pause_circle_filled');
|
||||
btnPlayPauseIcon.classList.add(isPaused ? 'play_circle_filled' : 'pause_circle_filled');
|
||||
|
||||
const playlistIndicator = context.querySelector('.playlistIndexIndicatorImage');
|
||||
if (playlistIndicator) {
|
||||
playlistIndicator.classList.toggle('playlistIndexIndicatorPausedImage', isPaused);
|
||||
}
|
||||
|
||||
buttonVisible(btnPlayPause, isActive);
|
||||
}
|
||||
|
||||
@ -525,6 +530,7 @@ export default function () {
|
||||
if (img) {
|
||||
img.classList.remove('lazy');
|
||||
img.classList.add('playlistIndexIndicatorImage');
|
||||
img.classList.toggle('playlistIndexIndicatorPausedImage', playbackManager.paused());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -452,6 +452,10 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.playlistIndexIndicatorImage.playlistIndexIndicatorPausedImage {
|
||||
background-image: url(../../assets/img/equalizer-paused.png) !important;
|
||||
}
|
||||
|
||||
.hideVideoButtons .videoButton {
|
||||
display: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user