Skip to content

Instantly share code, notes, and snippets.

@pryley
Last active April 26, 2018 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pryley/2ff79f79039764a70065418709c9aa7f to your computer and use it in GitHub Desktop.
Save pryley/2ff79f79039764a70065418709c9aa7f to your computer and use it in GitHub Desktop.
Nativefier customisations for Scrumpy

1. Create scrumpy.css

body {
    -webkit-app-region: drag;
}
a,
button,
.grid__item {
    -webkit-app-region: no-drag;
}

2. Create the wrapper

nativefier app.scrumpy.io --inject ./scrumpy.css

3. Edit main.js (Scrumpy.app/Contents/Resources/app/lib/main.js)

// ~ L4945
var mainWindow = new _electron.BrowserWindow({
    titleBarStyle: 'hiddenInset',
    // ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment