1.3.2 • Published 11 months ago

electron-autotheme v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Electron AutoTheme

FOSSA Status

The specified function is triggered at sunset and sunrise.

Example

import { AutoTheme } from "electron-autotheme";

function setWindowTheme(useDark: boolean) {
    /* ... */
}

new AutoTheme(setWindowTheme);

// With electron-store
const store = new Store();

new AutoTheme(setWindowTheme, store);

Electron Store

If you want to use electron-store to store the last location (for 48 hours), you can pass it as the second argument.

Example

{
    "electron-autotheme": {
        "location": {
            "latitude": 0,
            "longitude": 0
        },
        "date": "2020-01-01T00:00:00.000Z"
    }
}

Licenses

kelektiv/node-cron - MIT\ IonicaBizau/node-ipinfo - MIT

FOSSA Status

1.3.2

11 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago