refactor: Remove color settings on look and feel as they are no longer used, b=no-bug, c=common, workspaces

This commit is contained in:
Mr. M
2025-06-08 12:42:06 +02:00
parent 8fce658dc1
commit fd8a55c57c
19 changed files with 9 additions and 255 deletions

View File

@@ -10,7 +10,6 @@
}
:root[zen-single-toolbar='true'] {
--urlbar-container-padding: 4px;
& #urlbar:not([breakout-extend='true']) {
padding: 1px;
--toolbarbutton-border-radius: 6px;
@@ -26,7 +25,7 @@
--urlbar-margin-inline: 5px;
--urlbar-container-padding: 5px;
:root[zen-single-toolbar='true'] {
:root[zen-single-toolbar='true'] & {
--urlbar-container-padding: 4px;
}
}

View File

@@ -95,11 +95,6 @@ var ZenThemeModifier = {
updateAccentColor() {
const accentColor = Services.prefs.getStringPref('zen.theme.accent-color');
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);
}
},
};

View File

@@ -39,14 +39,6 @@
document.getElementById('PanelUI-zen-gradient-generator-custom-list')
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
'allowWorkspaceColors',
'zen.theme.color-prefs.use-workspace-colors',
true,
this.onDarkModeChange.bind(this)
);
this.panel.addEventListener('popupshowing', this.handlePanelOpen.bind(this));
this.panel.addEventListener('popuphidden', this.handlePanelClose.bind(this));
this.panel.addEventListener('command', this.handlePanelCommand.bind(this));