mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Move backdrop transparency method to component
This commit is contained in:
parent
3d11cbcd8f
commit
125d5cb015
6 changed files with 54 additions and 30 deletions
|
@ -24,6 +24,7 @@ import shell from '../../../scripts/shell';
|
|||
import SubtitleSync from '../../../components/subtitlesync/subtitlesync';
|
||||
import { appRouter } from '../../../components/appRouter';
|
||||
import LibraryMenu from '../../../scripts/libraryMenu';
|
||||
import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components/backdrop/backdrop';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -1323,7 +1324,7 @@ import LibraryMenu from '../../../scripts/libraryMenu';
|
|||
|
||||
view.addEventListener('viewbeforeshow', function () {
|
||||
headerElement.classList.add('osdHeader');
|
||||
appRouter.setTransparency('full');
|
||||
setBackdropTransparency(TRANSPARENCY_LEVEL.Full);
|
||||
});
|
||||
view.addEventListener('viewshow', function () {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue