halfmoonui/halfmoon

set color mode instead of toggle js

makerio90 opened this issue · 2 comments

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.

i see how it's done in the core. might do a or in the morning

fixed #123