mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 19:59:59 +02:00
feat: Prevent showing transparent backgrounds on compact mode, b=no-bug, c=workspaces
This commit is contained in:
parent
fdf6c7eb0e
commit
058c26f5fc
1 changed files with 8 additions and 3 deletions
|
@ -1051,12 +1051,17 @@
|
||||||
let color1 = this.getSingleRGBColor(themedColors[2], forToolbar);
|
let color1 = this.getSingleRGBColor(themedColors[2], forToolbar);
|
||||||
let color2 = this.getSingleRGBColor(themedColors[0], forToolbar);
|
let color2 = this.getSingleRGBColor(themedColors[0], forToolbar);
|
||||||
let color3 = this.getSingleRGBColor(themedColors[1], forToolbar);
|
let color3 = this.getSingleRGBColor(themedColors[1], forToolbar);
|
||||||
|
if (!forToolbar) {
|
||||||
return [
|
return [
|
||||||
`radial-gradient(circle at -30% -30%, ${color1}, transparent 100%)`,
|
`radial-gradient(circle at -30% -30%, ${color1}, transparent 100%)`,
|
||||||
`radial-gradient(circle at 130% -30%, ${color2}, transparent 100%)`,
|
`radial-gradient(circle at 130% -30%, ${color2}, transparent 100%)`,
|
||||||
`linear-gradient(to top, ${color3} -30%, transparent 60%)`,
|
`linear-gradient(to top, ${color3} -30%, transparent 60%)`,
|
||||||
].join(', ');
|
].join(', ');
|
||||||
}
|
}
|
||||||
|
return [
|
||||||
|
`linear-gradient(${this.currentRotation}deg, ${color1} -30%, ${color3} 100%)`,
|
||||||
|
].join(', ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldBeDarkMode(accentColor) {
|
shouldBeDarkMode(accentColor) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue