Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 强制使用非黑暗模式
牛文政5ac71fdb2e67
diff --git a/electron/main/index.ts b/electron/main/index.tsindex 27889601..1156c4ee 100644--- a/electron/main/index.ts+++ b/electron/main/index.ts@@ -1,4 +1,4 @@-import { app, BrowserWindow, shell, ipcMain } from 'electron';+import { app, BrowserWindow, shell, ipcMain, nativeTheme } from 'electron';import { fileURLToPath } from 'node:url';import path from 'node:path';import os from 'node:os';@@ -73,6 +73,9 @@ async function createWindow() {},});+ // 强制使用非黑暗模式+ nativeTheme.themeSource = 'light';+try {const tray = new SystemTray(win);tray.create();