mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
electron: Fix app not rendering colors properly.
There is a bug in v2 of electron which causes pale colors. Resetting the color profile to srgb fixes this problem. This is a temporary solution until electron officially fixes this. More info - https://github.com/electron/electron/issues/10732. Fixes: #497.
This commit is contained in:
@@ -131,6 +131,9 @@ function createMainWindow() {
|
||||
// Decrease load on GPU (experimental)
|
||||
app.disableHardwareAcceleration();
|
||||
|
||||
// Temporary fix for Electron render colors differently
|
||||
app.commandLine.appendSwitch('force-color-profile', 'srgb');
|
||||
|
||||
// eslint-disable-next-line max-params
|
||||
app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
|
||||
event.preventDefault();
|
||||
|
Reference in New Issue
Block a user