fix: Fixed gradient having wrong percentages, b=(no-bug), c=workspaces

This commit is contained in:
mr. m
2025-05-12 13:36:06 +02:00
parent 5ddedbbd50
commit 0d1d75588d

View File

@@ -927,8 +927,8 @@
getToolbarModifiedBase() { getToolbarModifiedBase() {
const opacity = this.#allowTransparencyOnSidebar ? 0.6 : 1; const opacity = this.#allowTransparencyOnSidebar ? 0.6 : 1;
return this.isDarkMode return this.isDarkMode
? `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) 96%, rgba(255,255,255,${opacity}) 4%)`
: `color-mix(in srgb, var(--zen-themed-toolbar-bg) 95%, rgba(0,0,0,${opacity}) 4%)`; : `color-mix(in srgb, var(--zen-themed-toolbar-bg) 96%, rgba(0,0,0,${opacity}) 4%)`;
} }
getSingleRGBColor(color, forToolbar = false) { getSingleRGBColor(color, forToolbar = false) {