From 683bef5b9d133cb194b476938c77cc07fd05b972 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 16 May 2016 18:10:38 +0200 Subject: [PATCH] Set BrowserWindow's background color to white to re-enable sub-pixel AA In Electron 0.37.3 the default background color has changed from white to transparent, and as per the sub pixel anti-aliasing specification, the layer which hosts the glyphs that need to be rendered needs to have an opaque background. We have also observed that upon reload everything seems to work smoothly even without this fix: this probably points in the direction of a regression in Electron, but in the meantime this fix should suffice to allow us to proceed. --- src/browser/atom-window.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/browser/atom-window.coffee b/src/browser/atom-window.coffee index 2f07dd443..0ee44d240 100644 --- a/src/browser/atom-window.coffee +++ b/src/browser/atom-window.coffee @@ -24,6 +24,7 @@ class AtomWindow options = show: false title: 'Atom' + backgroundColor: "#fff" webPreferences: backgroundThrottling: not @isSpec