2020-03-20 20:28:31 +00:00
|
|
|
import { EventEmitter } from 'events';
|
2019-08-14 20:42:55 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const { NativeTheme, nativeTheme } = process.electronBinding('native_theme');
|
2019-08-14 20:42:55 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
Object.setPrototypeOf(NativeTheme.prototype, EventEmitter.prototype);
|
|
|
|
EventEmitter.call(nativeTheme as any);
|
2019-08-14 20:42:55 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
module.exports = nativeTheme;
|