1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 09:26:22 +00:00

Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-09-22 13:37:53 -03:00
commit b952830b0f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -51,13 +51,18 @@ const settings = definePluginSettings({
description: "Show role colors in the reactors list",
restartNeeded: true
},
colorChatMessages: {
type: OptionType.BOOLEAN,
default: false,
description: "Color chat messages based on the author's role color",
restartNeeded: true,
},
messageSaturation: {
type: OptionType.SLIDER,
description: "Intensity of message coloring. 0 to disable.",
description: "Intensity of message coloring.",
markers: makeRange(0, 100, 10),
default: 30,
// This is called only once at startup, but late enough that the store is initialized.
get restartNeeded() { return settings.store.messageSaturation === 0; }
restartNeeded: true
},
});
@ -133,7 +138,7 @@ export default definePlugin({
match: /(?<=isUnsupported\]:(\i)\.isUnsupported\}\),)(?=children:\[)/,
replace: "style:{color:$self.useMessageColor($1)},"
},
predicate: () => settings.store.messageSaturation !== 0,
predicate: () => settings.store.colorChatMessages,
},
],
settings,