Made the brightness setting compatible with custom draw color and opacity.