mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 05:41:03 +00:00
13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { WindowManager } from "@main/services";
|
|
|
|
const importTheme = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
theme: string,
|
|
author: string
|
|
) => {
|
|
WindowManager.mainWindow?.webContents.send("import-theme", theme, author);
|
|
};
|
|
|
|
registerEvent("importTheme", importTheme);
|