Update Electron ~ fixes blue & light mode devtools

This commit is contained in:
Vendicated
2024-12-03 03:58:54 +01:00
parent 5d675efb64
commit 852410a43b
6 changed files with 944 additions and 552 deletions

View File

@@ -499,17 +499,5 @@ export async function createWindows() {
});
});
// evil hack to fix electron 32 regression that makes devtools always light theme
// https://github.com/electron/electron/issues/43367
// TODO: remove once fixed
mainWin.webContents.on("devtools-opened", () => {
if (!nativeTheme.shouldUseDarkColors) return;
nativeTheme.themeSource = "light";
setTimeout(() => {
nativeTheme.themeSource = "dark";
}, 100);
});
initArRPC();
}