mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
fix(mica): mica flicker when loading classic theme
This commit is contained in:
parent
43101620af
commit
5d07c3049d
@ -132,9 +132,9 @@ function getWindowExtraOpts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Window effects (Mica)
|
// Window effects (Mica)
|
||||||
// TODO: Deduplicate with src/public/app/desktop.js#initTransparencyEffects
|
if (isWindows) {
|
||||||
const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");
|
extraOpts.backgroundMaterial = "auto";
|
||||||
extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";
|
}
|
||||||
|
|
||||||
return extraOpts;
|
return extraOpts;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user