From fc05bccb08424571ed41cbffe02224b64c22568a Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:04:10 -0500 Subject: [PATCH] Add IMMERSIVE BackgroundStyle ModalFade --- src/equicordplugins/modalFade/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/modalFade/index.tsx b/src/equicordplugins/modalFade/index.tsx index b2304a952..ccc3b1397 100644 --- a/src/equicordplugins/modalFade/index.tsx +++ b/src/equicordplugins/modalFade/index.tsx @@ -14,7 +14,7 @@ import type { StoreApi, UseBoundStore } from "zustand"; type Modal = { Layer?: any, instant?: boolean, - backdropStyle?: "SUBTLE" | "DARK" | "BLUR", + backdropStyle?: "SUBTLE" | "DARK" | "BLUR", "IMMERSIVE", }; const { useModalContext, useModalsStore } = proxyLazy(() => Forms as any as { @@ -26,8 +26,6 @@ const { useModalContext, useModalsStore } = proxyLazy(() => Forms as any as { }); const { animated, useSpring, useTransition } = findByPropsLazy("a", "animated", "useTransition"); -// This doesn't seem to be necessary -// const { default: AppLayer } = findByPropsLazy("AppLayerContainer", "AppLayerProvider"); const ANIMS = { SUBTLE: { @@ -42,6 +40,10 @@ const ANIMS = { off: { opacity: 1, filter: "blur(0px)" }, on: { opacity: 0.7, filter: "blur(8px)" }, }, + IMMERSIVE: { + off: { opacity: 1 }, + on: { opacity: 0.7 } + } }; export default definePlugin({