Changes to be committed:
modified: src/renderer/components/settings/VencordLocationPicker.tsx
This commit is contained in:
parent
16bd46cbc9
commit
55ffbf7774
1 changed files with 39 additions and 0 deletions
|
@ -11,6 +11,45 @@ import { SettingsComponent } from "./Settings";
|
|||
export const VencordLocationPicker: SettingsComponent = ({ settings }) => {
|
||||
return (
|
||||
<>
|
||||
|
||||
<Forms.FormTitle>Custom Splash Animation</Forms.FormTitle>
|
||||
<Forms.FormText>
|
||||
The animation on the splash window is loaded from{" "}
|
||||
{settings.splashAnimationPath ? (
|
||||
<a
|
||||
href="about:blank"
|
||||
onClick={e => {
|
||||
e.preventDefault();
|
||||
VesktopNative.fileManager.showItemInFolder(settings.splashAnimationPath!);
|
||||
}}
|
||||
>
|
||||
{settings.splashAnimationPath}
|
||||
</a>
|
||||
) : (
|
||||
"the default location"
|
||||
)}
|
||||
</Forms.FormText>
|
||||
<div className="vcd-location-btns" style={{marginBottom: 20}}>
|
||||
<Button
|
||||
size={Button.Sizes.SMALL}
|
||||
onClick={async () => {
|
||||
const choice = await VesktopNative.fileManager.selectImagePath();
|
||||
if (choice === "cancelled") return;
|
||||
settings.splashAnimationPath = choice;
|
||||
}}
|
||||
>
|
||||
Change
|
||||
</Button>
|
||||
<Button
|
||||
size={Button.Sizes.SMALL}
|
||||
color={Button.Colors.RED}
|
||||
onClick={() => (settings.splashAnimationPath = void 0)}
|
||||
>
|
||||
Reset
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
|
||||
<Forms.FormText>
|
||||
Vencord files are loaded from{" "}
|
||||
{settings.vencordDir ? (
|
||||
|
|
Reference in a new issue