This is some nice functionality. There are two issues that need addressing.
The default settings seem to create a gap
The UI now seems confusing to me.
The code introduces a duplicate colour without user input. I'd prefer if this behaviour was more predictable and under control by the user. Maybe a checkbox and colour input?
To increase print performance with multi material printers introduce a small layer of multicoloured shapes on top of a single coloured base.