There is a pattern mode in the bucket tool. I am not sure if that's exactly what you wanted but it does replace a specific colour with a selected pattern.