fix: remove desktop translucency to reduce macOS compositing cost

This commit is contained in:
Bohdan Triapitsyn
2026-04-07 21:46:38 +03:00
parent 605e4bf42c
commit 952132a08d
96 changed files with 163 additions and 401 deletions
-4
View File
@@ -52,10 +52,6 @@ const setRootDeviceAttributes = (
if (isTauriShellRuntime) {
root.classList.add('desktop-runtime');
// Apply no-vibrancy class early so the first paint uses a solid background
// when vibrancy was previously disabled by the user.
const vibrancyOff = localStorage.getItem('desktopVibrancy') === 'false';
root.classList.toggle('no-vibrancy', vibrancyOff);
root.style.setProperty('--is-mobile', '0');
root.style.setProperty('--device-type', 'desktop');
root.style.setProperty('--font-scale', '1');