From d73746c2fbbbddccb560c13e9acfc75766937b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Fri, 1 Jul 2022 10:31:23 +0200 Subject: [PATCH] feat: splash screen --- assets/splash.html | 10 ++++++++++ assets/splash.png | Bin 0 -> 16836 bytes src/index.ts | 4 ++++ src/splash.ts | 17 +++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 assets/splash.html create mode 100644 assets/splash.png create mode 100644 src/splash.ts diff --git a/assets/splash.html b/assets/splash.html new file mode 100644 index 0000000..f18c5a4 --- /dev/null +++ b/assets/splash.html @@ -0,0 +1,10 @@ + + + + + Splash + + + + + diff --git a/assets/splash.png b/assets/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..d9a051509754fb20c5d30aabffec503cbb5dfad0 GIT binary patch literal 16836 zcmdtJ2T+q++ct{Zt%xY7h>a2}CmEeIq?3DJ#!6>JcZCQ3=@ zHK9jA0i`Ml0Yb<|dLTqf5+Q{AEAH?AzW2$=vH zhc;GbTQ~39EG8zl_0q+2wqj!IDPm&liZ*Qo-|WeDd;|Vl7h-E>vToqZaSZrFBIu%1 zh?tn9jOgDwu{UXZ#Kg|tx^(U=>`oesE|Dhh1c&_6v#-sE*w@sKB5TD-*&-5ydgn)@m~-2JH7aow}~kARAwBSYK! zhumpe3G&PC zfy4F7O)sqtm$9h@Tt@W#&yi+GQp7U2;cc*#qJDK0Yp@D3xG$I3M=5Z`{QPily(AvH z8(e-ttMKVgF~_P47*!uuhaK)k*fsEee106}hk=3y)`13QHj0Z&XXu7ZKuQV=>s8HO zM`!zD_{w?KnT=W}P6X}etblfmb+*VGMX%cJ-n|=BKtIt?<(tV#ZB0<%Lq{s?O60*E zp`Wr$;|-@;p2`{7IlLZruIg@d!`X{BJpaAo&$hhH36?=7YFbp%^)6?^f%n}V| z_md}2EZiHTmT4wOUE%QPpdX(e=JEObcv}re`1`$m?q8o7)xp z4iuVyCHx7xiX9mlk?HO2b$65u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(&+E+MhTDeM=JrvJ;1rUqnAO2xWcAX@>RlbFw#e_B zE*rU1{v~+n25$HnJp-xilDMku7kLuq7@1p}axxQX-?9+uCg_-584y4RjDId$uAhcF z8C1x0CFDJeoyjBIV(3uWCB4O^MYCUq-7R+1 zyu%a^eyQ3Ie)1`XdW=Fy6q1O;WjnHMKi z;&-tR#ooF5?xxR`QFnsFQT2%du__EdbS!2_G1Sul{GbKAecAt|Ja15^R(hqVDxyZlh-h<(>C&;q1dd4==&?1YCr#h zbgjYe6GQ1{fxeD1e>qeJ@(f-^7_7VdNi^R4Rz({JxWOjt4b~0O;8m$j6tUSGBaO`6 z;I7P3#c2nm2HUSj?5=_ZZsRqbO*})=Pk%<(gk(?2{h!-9=tf(`^mDb1&pk|I*Z%-k2u5uH literal 0 HcmV?d00001 diff --git a/src/index.ts b/src/index.ts index dfd7cb4..363b8be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ import { ensureApiKey } from './api-key' // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import squirrelInstallingExecution from 'electron-squirrel-startup' +import { initSplash } from './splash' if (squirrelInstallingExecution) { app.quit() @@ -69,6 +70,7 @@ async function main() { // }, }) } + const hideSplash = await initSplash() // Auto updaterg // @ts-ignore: https://github.com/electron/update-electron-app/pull/96 @@ -99,6 +101,8 @@ async function main() { } else { if (process.env.NODE_ENV !== 'development') openInstallerInBrowser() } + + hideSplash() runKeepAliveLoop() } diff --git a/src/splash.ts b/src/splash.ts new file mode 100644 index 0000000..1e38ca7 --- /dev/null +++ b/src/splash.ts @@ -0,0 +1,17 @@ +import { BrowserWindow, app } from 'electron' +import * as path from 'path' +import { logger } from './logger' + +export async function initSplash(): Promise<() => void> { + return new Promise((resolve, reject) => { + app.on('ready', () => { + const splashImage = path.resolve(__dirname, '..', '..', '..', 'assets', 'splash.html') + logger.info(`Serving splash screen from path ${splashImage}`) + + const splash = new BrowserWindow({ width: 810, height: 610, transparent: true, frame: false, alwaysOnTop: true }) + splash.loadURL(`file://${splashImage}`).catch(reject) + + resolve(() => splash.hide()) + }) + }) +}