Improve color scheme change detection