On 10/26/16, 12:59 PM, "Harbs" <harbs.li...@gmail.com> wrote:
>Pretty likely. The color values can come from anywhere. We happened to >have the values coming from compiled code (so compile-time checks could >have caught that case), but other colors in our app are created at >runtime. > >Runtime colors seems like a likely scenario. Maybe I'm not understanding, but I would that the recommended practice is that a user-determined color is validated at the point of user interaction. IOW, a ColorPicker will only return valid colors. Even a TextInput where you type in something and want a valid color out of it should validate the color at that point, before it goes into ValueObjects and into instances of SolidColor/SolidColorStroke. Thoughts? -Alex