Improve dim effect for screen transitions.