mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-31 04:02:26 +08:00
feat(mica): apply to vertical layout as well
This commit is contained in:
parent
3fac2a1ef1
commit
ed98d0ce49
@ -426,7 +426,8 @@ body.background-effects #launcher-pane .launcher-button {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
body.background-effects #horizontal-main-container {
|
||||
body.layout-vertical #rest-pane,
|
||||
body.layout-horizontal.background-effects #horizontal-main-container {
|
||||
background-color: var(--root-background);
|
||||
}
|
||||
/* #endregion */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user