fix(mica): mica flicker when loading classic theme

This commit is contained in:
Elian Doran 2024-12-07 09:58:41 +02:00
parent 43101620af
commit 5d07c3049d
No known key found for this signature in database

View File

@ -132,9 +132,9 @@ function getWindowExtraOpts() {
}
// Window effects (Mica)
// TODO: Deduplicate with src/public/app/desktop.js#initTransparencyEffects
const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");
extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";
if (isWindows) {
extraOpts.backgroundMaterial = "auto";
}
return extraOpts;
}