Skip to content

Commit

Permalink
Another attempt to provide option disabling the blur
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens committed Feb 2, 2025
1 parent 1b244bc commit be70a12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Another attempt to provide option disabling the blur

## [0.1.15-10] - 2025-02-02

- attempt to prevent tapping through the overlay
Expand Down
3 changes: 0 additions & 3 deletions package/src/components/OverlayAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface Props {
item?: PopoutTileType;
panScale: SharedValue<number>;
backdropProgress: SharedValue<number>;
disableBlur?: boolean;
overlayImageStyle?: ViewStyle;
}

Expand All @@ -18,7 +17,6 @@ const OverlayAnchor = ({
children,
panScale,
backdropProgress,
disableBlur,
overlayImageStyle,
}: PropsWithChildren<Props>) => {
const skiaImage = useImage(item?.image);
Expand All @@ -42,7 +40,6 @@ const OverlayAnchor = ({
image={skiaImage}
panScale={panScale}
backdropProgress={backdropProgress}
disableBlur={disableBlur}
overlayImageStyle={overlayImageStyle}
>
{children}
Expand Down
1 change: 0 additions & 1 deletion package/src/components/PopoutRootView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ const PopoutRootView = ({ children }: { children: ReactNode }) => {
item={elementOpened}
panScale={panScale}
backdropProgress={backdropProgress}
disableBlur={overlayConfig.overlayBlur === false}
overlayImageStyle={overlayConfig.overlayImageStyle}
>
{typeof OverlayComponent === 'function' ? (
Expand Down
5 changes: 1 addition & 4 deletions package/src/screens/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ interface Props extends React.ComponentProps<typeof Animated.View> {
image: SkImage;
panScale: SharedValue<number>;
backdropProgress: SharedValue<number>;
disableBlur?: boolean;
overlayImageStyle?: ViewStyle;
}

Expand All @@ -61,7 +60,6 @@ const Overlay = ({
children,
panScale,
backdropProgress,
disableBlur,
overlayImageStyle,
}: PropsWithChildren<Props>) => {
const { width: screenWidth, height: screenHeight } = useWindowDimensions();
Expand Down Expand Up @@ -278,7 +276,7 @@ const Overlay = ({
<View pointerEvents="box-none">
<OverlayBackdrop
image={image}
blurred={!disableBlur}
blurred
opacity={1}
tileWidth={item?.origin?.width}
tileHeight={item?.origin?.height}
Expand All @@ -296,7 +294,6 @@ const Overlay = ({
<CloseButton hide={onClose} overlayProgress={overlayProgress} />
<OverlayBackdrop
image={image}
blurred={!disableBlur}
opacity={shadowImageOpacity}
tileWidth={item?.origin?.width}
tileHeight={item?.origin?.height}
Expand Down

0 comments on commit be70a12

Please sign in to comment.