Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
feat: add forceDarkModeSupport option to support mojave dark mode for…
Browse files Browse the repository at this point in the history
… older electron versions
  • Loading branch information
MarshallOfSound committed Oct 1, 2018
1 parent cd52a49 commit 18f852b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The following options are **optional**:
- `utis` - the `LSItemContentTypes` value, a `string` array
- `extensions` - the `CFBundleTypeExtensions` value, a `string` array of file extensions
- `iconFile` - the `CFBundleTypeIconFile` value
- `forceDarkModeSupport` - Forces Mojave dark mode support to be enabled for older Electron versions

- **Linux**
- `linuxExecutableName` - overwrite the name of the executable in Linux
4 changes: 4 additions & 0 deletions src/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ function patchInfoPlist(opts) {
})
}

if (opts.forceDarkModeSupport) {
infoPlist['NSRequiresAquaSystemAppearance'] = false
}

f.contents = new Buffer(plist.build(infoPlist), 'utf8');
that.emit('data', f);
});
Expand Down

0 comments on commit 18f852b

Please sign in to comment.