jjranalli/nightwind

Better toggling

quick007 opened this issue · 5 comments

I made an issue a few days ago asking some questions, and I really think something like this would help with bigger, account-based applications:

nightwind.toggle(true)
//toggles nightwind on

nightwind.toggle(false)
//toggles nightwind off
Djiit commented

I think toggle is intended to be switching on and off, depending on the current state. Maybe we could add setDarkMode/setLightMode ? Added a PR with a proposed interface.

Djiit commented

@quick007 is it better now that we merged the PR ?

@Djiit The PR was merged into a separate branch. It will get merged with the main branch on the next major v1.2.0 release! Hopefully soon :)

I'm going to go ahead and close this because of #21

Closing as the issue has been fixed in 1.1.12