Define a resource value for the warning color
Retrieve the warning colour resource value and store it in a field variable
Use the warning colour resource value instead of the hard-coded constant
Create a resource colour value for the error colour
Retrieve the resource value for the error colour
Use the resource value for the error colour rather than the hard-coded constant