Set isDark to true when switching from light to dark