mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Get rid of the white flash when the app starts up (#3083)
* Prevent FOUC on startup, use Signal Blue instead Instead of flashing a white background on startup, the app will show a blue background while everything is loading. * Make sure tests are rendered on white background * Use `icon_250.png` as the loading image * Remove hardcoded 'Loading...' text from template
This commit is contained in:
committed by
Scott Nonnenberg
parent
b69e720c81
commit
b26f6231d8
4
main.js
4
main.js
@@ -210,6 +210,10 @@ function createWindow() {
|
||||
minWidth: MIN_WIDTH,
|
||||
minHeight: MIN_HEIGHT,
|
||||
autoHideMenuBar: false,
|
||||
backgroundColor:
|
||||
config.environment === 'test' || config.environment === 'test-lib'
|
||||
? '#ffffff' // Tests should always be rendered on a white background
|
||||
: '#2090EA',
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
nodeIntegrationInWorker: false,
|
||||
|
||||
Reference in New Issue
Block a user