Skip to content

Commit 9f93318

Browse files
author
Sophya
committed
customize splash
1 parent e12dd02 commit 9f93318

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

app/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ const url = require('url')
2020
let mainWindow, settingsWindow, aboutWindow, splashScreen, tray, contextMenu
2121

2222
function createSplashScreen () {
23-
splashScreen = new BrowserWindow({width: 600,
24-
height: 400,
23+
splashScreen = new BrowserWindow({width: 640,
24+
height: 480,
2525
frame: false,
2626
show: false
2727
})
2828
splashScreen.loadURL(url.format({
29-
pathname: path.join(__dirname, 'splash.html'),
29+
pathname: path.join(__dirname, 'splash/splash.html'),
3030
protocol: 'file:',
3131
slashes: true
3232
}))

app/splash.html renamed to app/splash/splash.html

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,14 @@
1111
height: 100%;
1212
position: fixed;
1313
text-align: center;
14-
background: linear-gradient(to top left, #228B22, #008080);
15-
}
16-
17-
.label {
18-
margin-top: 50px;
19-
font-family: 'Annabelle', arial;
20-
font-size: 50px;
21-
text-shadow: 10px 10px 10px black;
22-
}
23-
24-
.label-2 {
25-
font-family: 'Annabelle', arial;
26-
font-size: 25px;
27-
text-shadow: 10px 10px 10px black;
14+
background-color: white;
15+
background-image: url(splash_background.png);
2816
}
2917

3018
/* Spinkit */
3119

3220
.sk-chasing-dots {
33-
margin: 40px auto;
21+
margin: 220px auto;
3422
width: 40px;
3523
height: 40px;
3624
position: relative;
@@ -86,13 +74,10 @@
8674
</head>
8775
<body>
8876
<div class="image">
89-
<p class="label">Whatever</p>
90-
<p class="label-2">Keep your notes simple</p>
9177
<div class="sk-chasing-dots">
92-
<div class="sk-child sk-dot1" style="background-color: #fff"></div>
93-
<div class="sk-child sk-dot2" style="background-color: #fff"></div>
94-
</div>
95-
78+
<div class="sk-child sk-dot1" style="background-color: rgba(255, 255, 255, 0.5)"></div>
79+
<div class="sk-child sk-dot2" style="background-color: rgba(255, 255, 255, 0.5)"></div>
80+
</div>
9681
</div>
9782
</body>
9883
</html>

app/splash/splash_background.png

136 KB
Loading

0 commit comments

Comments
 (0)