Use theme manager to update mui theme
This commit is contained in:
@@ -39,6 +39,10 @@ function setTheme(id) {
|
||||
|
||||
currentThemeId = info.id;
|
||||
|
||||
// set the theme attribute for mui
|
||||
document.documentElement.setAttribute('data-theme', info.id);
|
||||
|
||||
// set the meta theme color
|
||||
document.getElementById('themeColor').content = info.color;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user