diff: refactor COLOR_DIFF from a flag into an int