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

feat: add darwinForceDarkModeSupport option to support mojave dark mode for older electron versions #51

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
- `darwinForceDarkModeSupport` - 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.darwinForceDarkModeSupport) {
infoPlist['NSRequiresAquaSystemAppearance'] = false
}

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