Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: making mobile navigation translucent

Ilian Sapundshiev11eba4820f93
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsx
index 27d676e59..ff2f2530d 100644
--- a/src/renderer/components/MobileNavigation.tsx
+++ b/src/renderer/components/MobileNavigation.tsx
@@ -17,7 +17,7 @@
*/
import React, { useState } from 'react';
-import { styled } from '@mui/material/styles';
+import { alpha, useTheme, styled } from '@mui/material/styles';
import { useDispatch, useSelector } from 'react-redux';
import classNames from 'classnames';
import Box from '@mui/material/Box';
@@ -100,6 +100,7 @@ interface Props {
function MobileNavigation(props: Props) {
const { t } = useTranslation();
+ const theme = useTheme();
const dispatch: AppDispatch = useDispatch();
const { setSelectedLocation } = useCurrentLocationContext();
@@ -157,6 +158,8 @@ function MobileNavigation(props: Props) {
<Root
style={{
// backgroundColor: theme.palette.background.default,
+ background: alpha(theme.palette.background.default, 0.85),
+ backdropFilter: 'blur(5px)',
height: '100%',
overflow: 'hidden',
width: width || 320,
diff --git a/src/renderer/containers/MainPage.tsx b/src/renderer/containers/MainPage.tsx
index 596de755b..990ad9de4 100644
--- a/src/renderer/containers/MainPage.tsx
+++ b/src/renderer/containers/MainPage.tsx
@@ -329,7 +329,12 @@ function MainPage(props: Props) {
</style>
{isDesktopMode || (AppConfig.isAmplify && !isLoggedIn()) ? (
<>
- <Drawer variant="persistent" anchor="left" open={drawerOpened}>
+ <Drawer
+ style={{ backgroundColor: 'unset' }}
+ variant="persistent"
+ anchor="left"
+ open={drawerOpened}
+ >
<MobileNavigation width={drawerWidth} />
</Drawer>
<main