mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-14 22:06:13 +00:00
feat: Added blur to compact mode sidebar and the urlbar, b=(no-bug), c=common, compact-mode, workspaces
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user