mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-13 21:24:00 +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);
|
|
});
|
|
};
|