MCPcopy
hub / github.com/alibaba/lightproxy / checkDarkMode

Function checkDarkMode

src/main/api.ts:118–123  ·  view source on GitHub ↗
(mainWindow: BrowserWindow)

Source from the content-addressed store, hash-verified

116}
117
118async function checkDarkMode(mainWindow: BrowserWindow) {
119 nativeTheme.on('updated', () => {
120 ipcMain.callRenderer(mainWindow, 'updateDarkMode', nativeTheme.shouldUseDarkColors);
121 });
122 return nativeTheme.shouldUseDarkColors;
123}
124
125async function update() {
126 return checkUpdater();

Callers 1

initIPCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected