Skip to content

Commit

Permalink
Work around vibrancy issue on macOS (sindresorhus#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX authored and sindresorhus committed Jan 14, 2019
1 parent 406ab6e commit ba09d90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,6 @@ document.addEventListener('DOMContentLoaded', () => {
if (!is.macos && config.get('darkMode')) {
document.documentElement.style.backgroundColor = '#1e1e1e';
}

// Activate vibrancy effect if it was set before quitting
setVibrancy();
});

window.addEventListener('load', () => {
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ function createMainWindow() {
titleBarStyle: 'hiddenInset',
autoHideMenuBar: config.get('autoHideMenuBar'),
darkTheme: isDarkMode, // GTK+3

// Workaround for https://github.com/electron/electron/issues/10420
transparent: true,
backgroundColor: '#00ffffff',

webPreferences: {
preload: path.join(__dirname, 'browser.js'),
nodeIntegration: false,
Expand Down

0 comments on commit ba09d90

Please sign in to comment.