1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update video player osd

This commit is contained in:
Luke Pulverenti 2015-05-13 23:24:25 -04:00
parent 547493024a
commit af129fb92d
7 changed files with 251 additions and 44 deletions

View file

@ -1691,7 +1691,7 @@ var AppInfo = {};
videoPlayerHtml += '<div class="nowPlayingInfo hiddenOnIdle">';
videoPlayerHtml += '<div class="nowPlayingImage"></div>';
videoPlayerHtml += '<div class="nowPlayingText"></div>';
videoPlayerHtml += '<div class="nowPlayingTabs"></div>';
videoPlayerHtml += '</div>'; // nowPlayingInfo
videoPlayerHtml += '<button id="video-previousTrackButton" class="mediaButton previousTrackButton videoTrackControl imageButton" title="Previous Track" type="button" onclick="MediaPlayer.previousTrack();" data-role="none"><i class="fa fa-step-backward"></i></button>';
@ -1801,22 +1801,27 @@ $(document).on('pagecreate', ".page", function () {
var page = $(this);
var current = page.data('theme');
if (current) {
return;
if (!current) {
var newTheme;
if (page.hasClass('libraryPage')) {
newTheme = 'b';
} else {
newTheme = 'a';
}
current = page.page("option", "theme");
if (current && current != newTheme) {
page.page("option", "theme", newTheme);
}
}
var newTheme;
if (page.hasClass('libraryPage')) {
newTheme = 'b';
if (current == 'b') {
$(document.body).addClass('darkScrollbars');
} else {
newTheme = 'a';
}
current = page.page("option", "theme");
if (current && current != newTheme) {
page.page("option", "theme", newTheme);
$(document.body).addClass('removeScrollbars');
}
}).on('pagebeforeshow', ".page", function () {