Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finally added the submenu for changing the splash animation #589

Closed
wants to merge 10 commits into from
Closed

Finally added the submenu for changing the splash animation #589

wants to merge 10 commits into from

Conversation

sz6084
Copy link

@sz6084 sz6084 commented May 8, 2024

Added a sub-menu for custom splash animation.

Sammie Zhang and others added 8 commits May 6, 2024 00:58
	new file:   package-lock.json
	modified:   src/main/index.ts
	modified:   src/main/ipc.ts
	modified:   src/main/splash.ts
	modified:   src/preload/VesktopNative.ts
	modified:   src/shared/IpcEvents.ts
Also testing if commit is verified or not.
	modified:   src/shared/settings.d.ts
	modified:   static/views/splash.html
	modified:   src/renderer/components/settings/VencordLocationPicker.tsx
@sz6084 sz6084 changed the title Finally added the submenu Finally added the submenu for changing the splash animation May 8, 2024
@Vendicated
Copy link
Member

please do not change unrelated files

<Forms.FormText>
The animation on the splash window is loaded from{" "}
{settings.splashAnimationPath ? (
<a
Copy link
Contributor

@Cynosphere Cynosphere May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Clickable (or Anchor if you want it to still look like a link) instead of an anchor tag.

src/renderer/components/settings/VencordLocationPicker.tsx Outdated Show resolved Hide resolved
@@ -74,6 +74,10 @@ function init() {

registerScreenShareHandler();
registerMediaPermissionsHandler();
//register file handler so we can load the custom splash animation from the user's filesystem
protocol.handle("splash-animation", () => {
return net.fetch("file:///"+splashAnimationPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use fs.readSync instead

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it doesn't make sense to have a "network request" to grab a local file when you can just read it directly

package-lock.json Outdated Show resolved Hide resolved
@ading2210
Copy link

ading2210 commented May 8, 2024

The changes from this PR got added to #355 so this can be closed now.

@sz6084 sz6084 closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants