mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 09:55:44 +02:00
Update plugins
This commit is contained in:
parent
ab154f7498
commit
363eaef6aa
3 changed files with 62 additions and 50 deletions
|
@ -76,11 +76,3 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-light .vc-spotify-lyrics {
|
|
||||||
background: var(--bg-overlay-3, var(--background-secondary-alt));
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-dark .vc-spotify-lyrics {
|
|
||||||
background: var(--bg-overlay-1, var(--background-secondary-alt));
|
|
||||||
}
|
|
||||||
|
|
|
@ -32,11 +32,9 @@ export default ErrorBoundary.wrap(function NotificationComponent({
|
||||||
let renderBody: boolean = true;
|
let renderBody: boolean = true;
|
||||||
let footer: boolean = false;
|
let footer: boolean = false;
|
||||||
|
|
||||||
if (attachments > 0)
|
if (attachments > 0) footer = true;
|
||||||
footer = true;
|
|
||||||
|
|
||||||
if (body === "")
|
if (body === "") renderBody = false;
|
||||||
renderBody = false;
|
|
||||||
|
|
||||||
// Precompute appearance settings.
|
// Precompute appearance settings.
|
||||||
const AppearanceSettings = {
|
const AppearanceSettings = {
|
||||||
|
|
|
@ -18,46 +18,68 @@ function SettingsComponent() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex flexDirection="column">
|
<Flex flexDirection="column">
|
||||||
{tags.map(t => (
|
<div
|
||||||
<Card key={t.name} style={{ padding: "1em 1em 0" }}>
|
style={{
|
||||||
<Forms.FormTitle style={{ width: "fit-content" }}>
|
display: "flex",
|
||||||
<Tooltip text={t.description}>
|
flexWrap: "wrap",
|
||||||
{({ onMouseEnter, onMouseLeave }) => (
|
gap: "16px",
|
||||||
<div
|
}}
|
||||||
onMouseEnter={onMouseEnter}
|
>
|
||||||
onMouseLeave={onMouseLeave}
|
{tags.map(t => (
|
||||||
>
|
<Card
|
||||||
{t.displayName} Tag <Tag type={localTags[t.name]}></Tag>
|
key={t.name}
|
||||||
</div>
|
style={{
|
||||||
)}
|
padding: "1em 1em 0",
|
||||||
</Tooltip>
|
width: "calc(33.333% - 11px)",
|
||||||
</Forms.FormTitle>
|
boxSizing: "border-box",
|
||||||
|
}}
|
||||||
<TextInput
|
|
||||||
type="text"
|
|
||||||
value={tagSettings[t.name]?.text ?? t.displayName}
|
|
||||||
placeholder={`Text on tag (default: ${t.displayName})`}
|
|
||||||
onChange={v => tagSettings[t.name].text = v}
|
|
||||||
className={Margins.bottom16}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Switch
|
|
||||||
value={tagSettings[t.name]?.showInChat ?? true}
|
|
||||||
onChange={v => tagSettings[t.name].showInChat = v}
|
|
||||||
hideBorder
|
|
||||||
>
|
>
|
||||||
Show in messages
|
<Forms.FormTitle style={{ width: "fit-content" }}>
|
||||||
</Switch>
|
<Tooltip text={t.description}>
|
||||||
|
{({ onMouseEnter, onMouseLeave }) => (
|
||||||
|
<div
|
||||||
|
onMouseEnter={onMouseEnter}
|
||||||
|
onMouseLeave={onMouseLeave}
|
||||||
|
>
|
||||||
|
{t.displayName} Tag
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</Tooltip>
|
||||||
|
</Forms.FormTitle>
|
||||||
|
|
||||||
<Switch
|
<div style={{ marginBottom: "10px" }}>
|
||||||
value={tagSettings[t.name]?.showInNotChat ?? true}
|
<Forms.FormText style={{ fontSize: "13px" }}>
|
||||||
onChange={v => tagSettings[t.name].showInNotChat = v}
|
Example:
|
||||||
hideBorder
|
</Forms.FormText>
|
||||||
>
|
<Tag type={localTags[t.name]} />
|
||||||
Show in member list and profiles
|
</div>
|
||||||
</Switch>
|
|
||||||
</Card>
|
<TextInput
|
||||||
))}
|
type="text"
|
||||||
|
value={tagSettings[t.name]?.text ?? t.displayName}
|
||||||
|
placeholder={`Text on tag (default: ${t.displayName})`}
|
||||||
|
onChange={v => tagSettings[t.name].text = v}
|
||||||
|
className={Margins.bottom16}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Switch
|
||||||
|
value={tagSettings[t.name]?.showInChat ?? true}
|
||||||
|
onChange={v => tagSettings[t.name].showInChat = v}
|
||||||
|
hideBorder
|
||||||
|
>
|
||||||
|
Show in messages
|
||||||
|
</Switch>
|
||||||
|
|
||||||
|
<Switch
|
||||||
|
value={tagSettings[t.name]?.showInNotChat ?? true}
|
||||||
|
onChange={v => tagSettings[t.name].showInNotChat = v}
|
||||||
|
hideBorder
|
||||||
|
>
|
||||||
|
Show in member list and profiles
|
||||||
|
</Switch>
|
||||||
|
</Card>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue