mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-13 20:30:30 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user