diff --git a/res/css/structures/_BackdropPanel.scss b/res/css/structures/_BackdropPanel.scss index 1960bd94e4..be709ec7f3 100644 --- a/res/css/structures/_BackdropPanel.scss +++ b/res/css/structures/_BackdropPanel.scss @@ -29,7 +29,7 @@ limitations under the License. top: 0; height: 100vh; width: 100%; - background-color: rgba(255, 255, 255, 0.055); + background-color: var(--lp-background-overlay) } } diff --git a/res/css/structures/_LeftPanel.scss b/res/css/structures/_LeftPanel.scss index f0203f6905..db634cd71f 100644 --- a/res/css/structures/_LeftPanel.scss +++ b/res/css/structures/_LeftPanel.scss @@ -17,7 +17,15 @@ limitations under the License. $groupFilterPanelWidth: 56px; // only applies in this file, used for calculations $roomListCollapsedWidth: 68px; +.mx_MatrixChat--with-avatar { + .mx_LeftPanel, + .mx_LeftPanel .mx_LeftPanel_roomListContainer { + background-color: transparent; + } +} + .mx_LeftPanel { + background-color: $roomlist-bg-color; // TODO decrease this once Spaces launches as it'll no longer need to include the 56px Community Panel min-width: 206px; @@ -42,6 +50,7 @@ $roomListCollapsedWidth: 68px; // Note: The 'room list' in this context is actually everything that isn't the tag // panel, such as the menu options, breadcrumbs, filtering, etc .mx_LeftPanel_roomListContainer { + background-color: $roomlist-bg-color; flex: 1 0 0; min-width: 0; // Create another flexbox (this time a column) for the room list components diff --git a/res/css/structures/_SpacePanel.scss b/res/css/structures/_SpacePanel.scss index 39727cdf7a..e271d6bb00 100644 --- a/res/css/structures/_SpacePanel.scss +++ b/res/css/structures/_SpacePanel.scss @@ -22,7 +22,14 @@ $activeBorderTransparentGap: 1px; $activeBackgroundColor: $roomtile-selected-bg-color; $activeBorderColor: $secondary-fg-color; +.mx_MatrixChat--with-avatar { + .mx_SpacePanel { + background-color: transparent; + } +} + .mx_SpacePanel { + background-color: $groupFilterPanel-bg-color; flex: 0 0 auto; padding: 0; margin: 0; diff --git a/res/themes/dark/css/_dark.scss b/res/themes/dark/css/_dark.scss index 854fa9f168..6b28e09587 100644 --- a/res/themes/dark/css/_dark.scss +++ b/res/themes/dark/css/_dark.scss @@ -242,6 +242,7 @@ $appearance-tab-border-color: $room-highlight-color; :root { --llp-background-blur: 60px; --lp-background-blur: 30px; + --lp-background-overlay: rgba(255, 255, 255, 0.055); } $composer-shadow-color: rgba(0, 0, 0, 0.28); diff --git a/res/themes/light/css/_light.scss b/res/themes/light/css/_light.scss index 706f4946fa..8667a13757 100644 --- a/res/themes/light/css/_light.scss +++ b/res/themes/light/css/_light.scss @@ -365,6 +365,7 @@ $appearance-tab-border-color: $input-darker-bg-color; :root { --llp-background-blur: 40px; --lp-background-blur: 20px; + --lp-background-overlay: rgba(0, 0, 0, 0.055); } $composer-shadow-color: rgba(0, 0, 0, 0.04); diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index 2371aec384..4b595c5bf2 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -67,6 +67,7 @@ import UserView from "./UserView"; import GroupView from "./GroupView"; import BackdropPanel from "./BackdropPanel"; import SpaceStore from "../../stores/SpaceStore"; +import classNames from 'classnames'; // We need to fetch each pinned message individually (if we don't already have it) // so each pinned message may trigger a request. Limit the number per room for sanity. @@ -614,10 +615,11 @@ class LoggedInView extends React.Component { break; } - let bodyClasses = 'mx_MatrixChat'; - if (this.state.useCompactLayout) { - bodyClasses += ' mx_MatrixChat_useCompactLayout'; - } + const bodyClasses = classNames({ + 'mx_MatrixChat': true, + 'mx_MatrixChat_useCompactLayout': this.state.useCompactLayout, + 'mx_MatrixChat--with-avatar': this.state.backgroundImage, + }); const audioFeedArraysForCalls = this.state.activeCalls.map((call) => { return (