mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user