Skip to content

Commit e7e8853

Browse files
committed
feat: Remove wallpaper overlay
1 parent c3ab817 commit e7e8853

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/components/AnimatedWrapper.jsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { isFlagshipApp } from 'cozy-device-helper'
33
import homeConfig from '@/config/home.json'
44
import { useOpenApp } from '@/hooks/useOpenApp'
55
import { RemoveScroll } from 'react-remove-scroll'
6-
import { useWallpaperContext } from '@/hooks/useWallpaperContext'
76
import cx from 'classnames'
87

98
import App from '@/containers/App'
@@ -18,9 +17,6 @@ const RemoveScrollOnFlaghsip = ({ children }) => {
1817

1918
const AnimatedWrapper = () => {
2019
const { getAppState } = useOpenApp()
21-
const {
22-
data: { isCustomWallpaper }
23-
} = useWallpaperContext()
2420

2521
const mainStyle = isFlagshipApp()
2622
? {
@@ -34,8 +30,7 @@ const AnimatedWrapper = () => {
3430
<div
3531
className={cx(
3632
`App u-flex u-flex-column u-w-100 u-miw-100 u-flex-items-center`,
37-
{ [getAppState]: !!getAppState },
38-
{ 'custom-wallpaper': isCustomWallpaper }
33+
{ [getAppState]: !!getAppState }
3934
)}
4035
style={mainStyle}
4136
>

src/containers/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ const App = () => {
104104
}
105105

106106
return (
107-
// u-bg-white avoids mix-blend-mode from home-custom-background to be linked to the background color of the body. Must not be responsive to the theme.
108-
<Layout monoColumn className="u-bg-white">
107+
<Layout monoColumn>
109108
<BarComponent
110109
searchOptions={{ enabled: false }}
111110
componentsProps={{

src/styles/app.styl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ body
2626
.App
2727
overflow-y overlay
2828

29-
&.custom-wallpaper
30-
// black filter effect above the custom wallpaper image
31-
&::before
32-
content ''
33-
position fixed
34-
top 0
35-
left 0
36-
width 100%
37-
height 100%
38-
background-color rgba(0, 0, 0, .32)
39-
backdrop-filter saturate(124%)
40-
4129
.corner
4230
z-index var(--zIndex-nav)
4331
margin rem(12) 2rem rem(-44) 0

0 commit comments

Comments
 (0)