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:
parent
77a06780a6
commit
8a39f7618e
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue