Added color choice functionality and edited look and feel settings

This commit is contained in:
Mauro Balades
2024-04-13 13:22:54 +02:00
parent f7031d803c
commit 4568ad6d6f
7 changed files with 188 additions and 7 deletions

View File

@@ -52,6 +52,11 @@
updateAccentColor() {
const accentColor = Services.prefs.getStringPref(kZenThemeAccentColorPref, "#0b57d0");
document.documentElement.style.setProperty("--zen-primary-color", accentColor);
// Notify the page that the accent color has changed, only if a function
// handler is defined.
if (typeof window.zenPageAccentColorChanged === "function") {
window.zenPageAccentColorChanged(accentColor);
}
},
};