Add dpi awareness to ColorEditor