jellyfin-web/dashboard-ui/scripts/themeloader.js
Luke Pulverenti d788d58e92 update themes
2017-10-23 02:01:49 -04:00

1 line
528 B
JavaScript

define(["userSettings","skinManager"],function(userSettings,skinManager){"use strict";var currentViewType;pageClassOn("viewbeforeshow","page",function(){var viewType=this.getAttribute("data-theme");if(viewType||(viewType=this.classList.contains("type-interior")||this.classList.contains("wizardPage")?"a":"b"),viewType!==currentViewType){currentViewType=viewType;var theme,context;"a"===viewType?(theme=userSettings.dashboardTheme(),context="serverdashboard"):theme=userSettings.theme(),skinManager.setTheme(theme,context)}})});