System Sensor also offers black cases for their *51 smoke detectors.
Also, if the ceiling is painted a different color than white, the obvious solution is simply not painting the smoke detector, even if it sticks out. If they’re going to paint over it, then they might as well just not install it there in the first place.