A much simpler way is to apply a bitmap fill and then apply colour to it.

Draw a square
Select bitmap fill
Click on the fill handle. The center box
Select a colour from the colour line
Select the outer box from the fill gadget and apply the second colour.