fix(mica): apply correct mica when switching layouts

This commit is contained in:
Elian Doran
2024-12-07 03:15:39 +02:00
parent 407448476b
commit 57d2b0ebf5
2 changed files with 17 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ function getWindowExtraOpts() {
}
// Window effects (Mica)
// TODO: Apply only on Windows and allow the user to choose whether to activate it or not.
// TODO: Deduplicate with src/public/app/desktop.js#initTransparencyEffects
const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");
extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";