mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
feat(mica): apply to vertical layout as well
This commit is contained in:
@@ -133,7 +133,8 @@ function getWindowExtraOpts() {
|
||||
|
||||
// Window effects (Mica)
|
||||
// TODO: Apply only on Windows and allow the user to choose whether to activate it or not.
|
||||
extraOpts.backgroundMaterial = "tabbed";
|
||||
const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");
|
||||
extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";
|
||||
|
||||
return extraOpts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user