Added method to determine whether a theme is dark