EquicordHelper: Drop No Modal Animation
This commit is contained in:
parent
853f0fdedd
commit
dedd51faf2
2 changed files with 1 additions and 16 deletions
|
|
@ -114,12 +114,6 @@ const settings = definePluginSettings({
|
|||
restartNeeded: true,
|
||||
default: false
|
||||
},
|
||||
noModalAnimation: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Remove the 300ms long animation when opening or closing modals",
|
||||
restartNeeded: true,
|
||||
default: false
|
||||
},
|
||||
disableAdoptTagPrompt: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Disable the prompt to adopt tags",
|
||||
|
|
@ -261,15 +255,6 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
// Removes Modal Animation
|
||||
{
|
||||
find: 'backdropFilter:"blur(0px)"',
|
||||
predicate: () => settings.store.noModalAnimation,
|
||||
replacement: {
|
||||
match: /\?0:200/,
|
||||
replace: "?0:0",
|
||||
}
|
||||
},
|
||||
// Removes Modal Animation
|
||||
{
|
||||
find: '="ABOVE"',
|
||||
predicate: () => settings.store.noModalAnimation,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".tabBarRef",
|
||||
replacement: {
|
||||
match: /style:this\.getStyle\(\),role:"tab"/,
|
||||
match: /style:this\.getStyle\(\),role:\i/,
|
||||
replace: "$&,'data-tab-id':this?.props?.id"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue