We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37db078 commit b94379fCopy full SHA for b94379f
src/main/mainWindow.ts
@@ -499,5 +499,17 @@ export async function createWindows() {
499
});
500
501
502
+ // evil hack to fix electron 32 regression that makes devtools always light theme
503
+ // https://github.com/electron/electron/issues/43367
504
+ // TODO: remove once fixed
505
+ mainWin.webContents.on("devtools-opened", () => {
506
+ if (!nativeTheme.shouldUseDarkColors) return;
507
+
508
+ nativeTheme.themeSource = "light";
509
+ setTimeout(() => {
510
+ nativeTheme.themeSource = "dark";
511
+ }, 100);
512
+ });
513
514
initArRPC();
515
}
0 commit comments