feat: Set a constant blending mode for transparent sidebars, b=no-bug, c=workspaces

This commit is contained in:
Mr. M
2025-08-24 01:27:31 +02:00
parent 7981b42c23
commit a65bac9b8a

View File

@@ -1090,7 +1090,11 @@
}
let opacity = this.currentOpacity;
if (forToolbar && !this.#allowTransparencyOnSidebar) {
color = this.blendColors(color.c, this.getToolbarModifiedBaseRaw().slice(0, 3), 90);
color = this.blendColors(
color.c,
this.getToolbarModifiedBaseRaw().slice(0, 3),
this.canBeTransparent ? 90 : opacity * 100
);
opacity = 1; // Toolbar colors should always be fully opaque
} else {
color = color.c;