1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 23:00:01 +02:00

feat: Remove unneeded CSS value for toolbar background, b=no-bug, c=common, workspaces

This commit is contained in:
Mr. M 2025-06-22 11:55:27 +02:00
parent 77a06780a6
commit 8a39f7618e
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
2 changed files with 7 additions and 4 deletions

View file

@ -165,7 +165,6 @@
--input-bgcolor: var(--zen-colors-tertiary) !important;
--input-border-color: var(--zen-input-border-color) !important;
--zen-themed-toolbar-bg: light-dark(rgb(240, 240, 244), #171717);
--zen-themed-toolbar-bg-transparent: light-dark(var(--zen-branding-bg), #171717);
--zen-workspace-indicator-height: 48px;

View file

@ -969,8 +969,12 @@
getToolbarModifiedBase() {
const opacity = this.#allowTransparencyOnSidebar ? 0.6 : 1;
return this.isDarkMode
? `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) 96%, rgba(0,0,0,${opacity}) 4%)`;
? `rgba(23, 23, 26, ${opacity})`
: `rgba(240, 240, 244, ${opacity})`;
}
get cantBeTransparent() {
return window.matchMedia('(-moz-windows-mica) or (-moz-platform: macos) or ((-moz-platform: linux) and -moz-pref("zen.widget.linux.transparency"))').matches;
}
getSingleRGBColor(color, forToolbar = false) {
@ -1038,7 +1042,7 @@
if (themedColors.length === 0) {
return forToolbar
? 'var(--zen-themed-toolbar-bg)'
? this.getToolbarModifiedBase()
: 'var(--zen-themed-toolbar-bg-transparent)';
} else if (themedColors.length === 1) {
return this.getSingleRGBColor(themedColors[0], forToolbar);