Skip to content

Commit

Permalink
use grey colors for side bar when vibrancy is not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 30, 2023
1 parent 3158b50 commit 1adb1b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/web/components/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface Props {
}

export const Preview: React.FC<Props> = ({ tree, headings, path, dispatch }) => {
const { titleBar, vibrant, borderTop } = useContext(ConfigContext);
const { titleBar, vibrant, borderTop, theme } = useContext(ConfigContext);

if (tree.root === null) {
return <></>;
Expand All @@ -48,7 +48,7 @@ export const Preview: React.FC<Props> = ({ tree, headings, path, dispatch }) =>
boxSizing?: string;
} = {};
if (!vibrant) {
sx.bgcolor = 'background.paper';
sx.bgcolor = theme === 'light' ? 'grey.100' : 'grey.900';
}
if (borderTop) {
sx.borderTop = 1;
Expand Down

0 comments on commit 1adb1b2

Please sign in to comment.