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

update themes

This commit is contained in:
Luke Pulverenti 2017-10-23 02:01:49 -04:00
parent 90e4adb8c1
commit d788d58e92
11 changed files with 19 additions and 9 deletions

View file

@ -1 +1 @@
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,context;"a"===viewType?(theme=userSettings.dashboardTheme(),context="serverdashboard"):theme=userSettings.theme(),skinManager.setTheme(theme,context)})});
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)}})});