|
|
@@ -230,6 +230,8 @@ function updateHeaderFromInit() {
|
|
|
showLoginLink.value = false
|
|
|
}
|
|
|
|
|
|
+ applyStyleMods()
|
|
|
+
|
|
|
renderNavigation()
|
|
|
applyTheme()
|
|
|
|
|
|
@@ -366,6 +368,18 @@ function applyTheme() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+function applyStyleMods() {
|
|
|
+ if (!window.initResponse || !window.initResponse.styleMods) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ for (const styleMod of window.initResponse.styleMods) {
|
|
|
+ if (styleMod) {
|
|
|
+ document.body.classList.add(styleMod)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function handleThemeDialogClick(event) {
|
|
|
if (event.target === themeDialog.value) {
|
|
|
closeThemeDialog()
|