set color mode instead of toggle js
makerio90 opened this issue · 2 comments
makerio90 commented
the core js lib allowed you to toggle the mode. however many times you want it to force into a mode like halfmoon.setMode("light")
for example. if it's in dark mode, set it to light mode, if it's light mode, do nothing.
makerio90 commented
i see how it's done in the core. might do a or in the morning