feat(mica): apply to vertical layout as well

This commit is contained in:
Elian Doran 2024-12-07 02:06:15 +02:00
parent 3fac2a1ef1
commit ed98d0ce49
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -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;
}