mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
10 lines
315 B
TypeScript
10 lines
315 B
TypeScript
import { themesSublevel } from "@main/level";
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const getActiveCustomTheme = async () => {
|
|
const allThemes = await themesSublevel.values().all();
|
|
return allThemes.find((theme) => theme.isActive);
|
|
};
|
|
|
|
registerEvent("getActiveCustomTheme", getActiveCustomTheme);
|