UNPKG

electron-autotheme

Version:

Trigger a function at sunset/sunrise (e.g. for auto theme change)

14 lines (13 loc) 384 B
import ElectronStore from "electron-store"; export declare class AutoTheme { private currentCronJob; private location; private readonly store; private useDark; constructor(func: (useDark: boolean) => void, store?: ElectronStore<any>); private getLocation; private getSunriseSunset; private newAutoTheme; useDarkMode(): boolean; stop(): void; }