feat: Added blur to compact mode sidebar and the urlbar, b=(no-bug), c=common, compact-mode, workspaces

This commit is contained in:
Mr. M
2025-05-11 18:34:23 +02:00
parent 01d705a3b5
commit 5dc30c44ff
4 changed files with 47 additions and 25 deletions

View File

@@ -11,6 +11,12 @@
currentRotation = -45;
dots = [];
useAlgo = '';
#allowTransparencyOnSidebar = Services.prefs.getBoolPref(
'zen.view.experimental-rounded-view',
false
);
constructor() {
super();
if (
@@ -922,9 +928,10 @@
}
getToolbarModifiedBase() {
const opacity = this.#allowTransparencyOnSidebar ? 0.6 : 1;
return this.isDarkMode
? 'color-mix(in srgb, var(--zen-themed-toolbar-bg) 80%, #fff 20%)'
: 'color-mix(in srgb, var(--zen-themed-toolbar-bg) 95%, #000 6%)';
? `color-mix(in srgb, var(--zen-themed-toolbar-bg) 80%, rgba(255,255,255,${opacity}) 4%)`
: `color-mix(in srgb, var(--zen-themed-toolbar-bg) 95%, rgba(0,0,0,${opacity}) 4%)`;
}
getSingleRGBColor(color, forToolbar = false) {