mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-21 10:03:56 +00:00
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import { Theme } from "@types";
|
|
import { registerEvent } from "../register-event";
|
|
import { themesSublevel } from "@main/level";
|
|
|
|
const addCustomTheme = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
theme: Theme
|
|
) => {
|
|
await themesSublevel.put(theme.id, theme);
|
|
};
|
|
|
|
registerEvent("addCustomTheme", addCustomTheme);
|