Make splash screen wider, opaque and fix it's spinner radius

Radius should be such that final spin doesn't extend out of the circle
Opaque background improves contrast for better visual
This commit is contained in:
Debanjum Singh Solanky
2023-11-03 22:20:11 -07:00
parent 3ef05f4803
commit e8f568d79c
2 changed files with 5 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
var $wrap = document.getElementById('loading-animation'),
canvassize = 280,
canvassize = 380,
length = 40,
radius = 7.3,
radius = 6.8,
rotatevalue = 0.035,
rotatevalue = 0.02,
acceleration = 0,
animatestep = 0,
toend = false,

View File

@@ -344,8 +344,8 @@ const createWindow = (tab = 'chat.html') => {
firstRun = false;
// Create splash screen
var splash = new BrowserWindow({width: 300, height: 300, transparent: true, frame: false, alwaysOnTop: true});
splash.setOpacity(0.85);
var splash = new BrowserWindow({width: 400, height: 400, transparent: true, frame: false, alwaysOnTop: true});
splash.setOpacity(1.0);
splash.setBackgroundColor('#d16b4e');
splash.loadFile('splash.html');