fix: remove desktop translucency to reduce macOS compositing cost
This commit is contained in:
@@ -135,29 +135,12 @@
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
|
||||
:root.desktop-runtime:not(.no-vibrancy) body,
|
||||
:root.desktop-runtime:not(.no-vibrancy) #root {
|
||||
background: transparent !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
:root.desktop-runtime.no-vibrancy body,
|
||||
:root.desktop-runtime.no-vibrancy #root {
|
||||
:root.desktop-runtime body,
|
||||
:root.desktop-runtime #root {
|
||||
background: var(--background) !important;
|
||||
background-color: var(--background) !important;
|
||||
}
|
||||
|
||||
/* When vibrancy is off, force sidebar overlays to solid and disable blur. */
|
||||
:root.desktop-runtime.no-vibrancy {
|
||||
--sidebar-overlay-strong: var(--sidebar) !important;
|
||||
--sidebar-overlay-soft: var(--sidebar) !important;
|
||||
}
|
||||
|
||||
:root.desktop-runtime.no-vibrancy .backdrop-blur {
|
||||
-webkit-backdrop-filter: none !important;
|
||||
backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
.font-sans {
|
||||
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user