Skip to content

Build your personal knowledge base with Trilium Notes

style/right panel: add translucent background when background effects are active

Adorian Doran98b8e97fd9ad
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index 2f5ecfa191..12878cf67b 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -211,6 +211,7 @@
--floating-button-hide-button-background: #00000029;
--floating-button-hide-button-color: #ffffff63;
+ --right-pane-background-color: var(--main-background-color);
--right-pane-item-hover-background: #ffffff26;
--right-pane-item-hover-color: white;
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index 121ee0dec7..c7c03b6644 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -210,6 +210,7 @@
--new-tab-button-hover-background: white;
--new-tab-button-hover-color: black;
+ --right-pane-background-color: var(--main-background-color);
--right-pane-item-hover-background: #ececec;
--right-pane-item-hover-color: inherit;
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css
index 12ac3a6496..b4cc36b482 100644
--- a/apps/client/src/stylesheets/theme-next/shell.css
+++ b/apps/client/src/stylesheets/theme-next/shell.css
@@ -44,6 +44,7 @@ body.background-effects.platform-win32 {
--new-tab-button-background: var(--window-background-color-bgfx);
--active-tab-background-color: var(--launcher-pane-horiz-background-color);
--root-background: transparent;
+ --right-pane-background-color: var(--center-pane-vert-layout-background-color-bgfx);
}
body.background-effects.platform-win32.layout-vertical {
@@ -1195,8 +1196,6 @@ body.layout-vertical .tab-row-widget-is-sorting .note-tab.note-tab-is-dragging .
/* will-change: opacity; -- causes some weird artifacts to the note menu in split view */
}
-
-
/*
* Ribbon & note header
*/
@@ -1722,7 +1721,7 @@ div.find-replace-widget div.find-widget-found-wrapper > span {
*/
#right-pane {
- background: var(--main-background-color);
+ background: var(--right-pane-background-color);
}
#right-pane div.card-header {