Skip to content

Commit

Permalink
fix for mac splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Mar 21, 2022
1 parent f20d38e commit 0f7f34b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Bug fixes:

- On Linux the backend server was not being bundled correctly. This has been fixed to start on app launch.
- Fixed an issue where the splash screen on macOS was rendering a shadow.

## v1.0.0 - 2021-03-18

Expand Down
4 changes: 3 additions & 1 deletion public/splash-screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
</head>

<body style="padding: 20px; padding-top: 25px; background: transparent">
<div style="display: flex; justify-content: center; align-items: center">
<div
style="display: flex; justify-content: center; align-items: center; background: transparent"
>
<lottie-player
src="https://assets5.lottiefiles.com/packages/lf20_69bpyfie.json"
background="transparent"
Expand Down
7 changes: 5 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,17 @@ async function createWindow() {
width: 500,
height: 500,
frame: false,
show: true,
icon: __dirname + "/assets/app-icons/Icon.png",
alwaysOnTop: true,
transparent: true,
hasShadow: false,
resizable: false,
movable: false,
});
splash.loadURL(path.join("file://", __dirname, "/splash-screen.html"));

////// splash screen end
///// splash screen end
mainWindow.once("ready-to-show", () => {
setTimeout(function () {
splash.close();
Expand Down Expand Up @@ -230,7 +234,6 @@ async function createWindow() {
// Load the index.html when not in development
mainWindow.loadURL("app://./index.html");

// exitPyProc();
// Check for updates
autoUpdater.checkForUpdatesAndNotify();
}
Expand Down

0 comments on commit 0f7f34b

Please sign in to comment.