mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-26 00:42:19 +00:00
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { nativeTheme } from 'electron';
|
|
let electronSocket;
|
|
|
|
export = (socket: SocketIO.Socket) => {
|
|
electronSocket = socket;
|
|
|
|
socket.on('nativeTheme-shouldUseDarkColors', () => {
|
|
const shouldUseDarkColors = nativeTheme.shouldUseDarkColors;
|
|
|
|
electronSocket.emit('nativeTheme-shouldUseDarkColors-completed', shouldUseDarkColors);
|
|
});
|
|
};
|