diff --git a/src/main/native-theme.ts b/src/main/native-theme.ts deleted file mode 100644 index e729245666..0000000000 --- a/src/main/native-theme.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) OpenLens Authors. All rights reserved. - * Licensed under MIT License. See LICENSE in root directory for more information. - */ - -import { nativeTheme } from "electron"; -import { broadcastMessage } from "../common/ipc"; -import { setNativeThemeChannel } from "../common/ipc/native-theme"; - -export function broadcastNativeThemeOnUpdate() { - nativeTheme.on("updated", () => { - broadcastMessage(setNativeThemeChannel, getNativeColorTheme()); - }); -} - -export function getNativeColorTheme() { - return nativeTheme.shouldUseDarkColors ? "dark" : "light"; -}