Convert isDark into a function

This removes the hassle of changing both this.options.lightOrDark
and this.isDark