Added check for dark theme when setting themes from preferences