jellyfin-web/dashboard-ui/scripts/themeloader.js
Luke Pulverenti f7a9ffd6e9 update themes
2017-07-30 13:53:49 -04:00

1 line
462 B
JavaScript

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