mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Show a different icon when the player is paused
This commit is contained in:
parent
408b7c011a
commit
efb4a92ba6
3 changed files with 6 additions and 0 deletions
BIN
src/assets/img/equalizer-paused.gif
Normal file
BIN
src/assets/img/equalizer-paused.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 B |
|
@ -525,6 +525,7 @@ export default function () {
|
||||||
if (img) {
|
if (img) {
|
||||||
img.classList.remove('lazy');
|
img.classList.remove('lazy');
|
||||||
img.classList.add('playlistIndexIndicatorImage');
|
img.classList.add('playlistIndexIndicatorImage');
|
||||||
|
img.classList.toggle('playlistIndexIndicatorPausedImage', playbackManager.paused());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -598,6 +599,7 @@ export default function () {
|
||||||
|
|
||||||
function onPlayPauseStateChanged() {
|
function onPlayPauseStateChanged() {
|
||||||
updatePlayPauseState(this.paused(), true);
|
updatePlayPauseState(this.paused(), true);
|
||||||
|
onPlaylistUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onStateChanged(event, state) {
|
function onStateChanged(event, state) {
|
||||||
|
|
|
@ -452,6 +452,10 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playlistIndexIndicatorImage.playlistIndexIndicatorPausedImage {
|
||||||
|
background-image: url(../../assets/img/equalizer-paused.gif) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hideVideoButtons .videoButton {
|
.hideVideoButtons .videoButton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue