feat: enhance zen styles for toolbar, sidebar, and tabs; adjust layout and padding

This commit is contained in:
mr. M
2024-11-18 23:14:50 +01:00
parent 1b9ada13a2
commit 032954be2b
9 changed files with 36 additions and 12 deletions

View File

@@ -73,6 +73,11 @@ var ZenThemeModifier = {
updateElementSeparation() {
const separation = Services.prefs.getIntPref('zen.theme.content-element-separation');
document.documentElement.style.setProperty('--zen-element-separation', separation + 'px');
if (separation == 0) {
document.documentElement.setAttribute("zen-no-padding", true);
} else {
document.documentElement.removeAttribute("zen-no-padding");
}
},
/**