Add 'Sync with computer' theme option (#4973)

This commit is contained in:
Alex Andreev authored and GitHub committed 2022-03-09 08:08:24 -05:00
1 parent a4954b9f8d
commit dd5dfb393d
12 files changed
+102 -3

No files matched your search

@@ -24,6 +24,8 @@ import { onLocationChange, handleWindowAction } from "../../ipc/window";
import { openFilePickingDialogChannel } from "../../../common/ipc/dialog";
import { showOpenDialog } from "../../ipc/dialog";
import { windowActionHandleChannel, windowLocationChangedChannel, windowOpenAppMenuAsContextMenuChannel } from "../../../common/ipc/window";
import { getNativeColorTheme } from "../../native-theme";
import { getNativeThemeChannel } from "../../../common/ipc/native-theme";
interface Dependencies {
electronMenuItems: IComputedValue<MenuRegistration[]>;
@@ -158,4 +160,8 @@ export const initIpcMainHandlers = ({ electronMenuItems, directoryForLensLocalSt
y: 20,
});
});
ipcMainHandle(getNativeThemeChannel, () => {
return getNativeColorTheme();
});
};