Unless the switch is powered (sounds like no) it is very simple, the switch goes between the two purple marrettes/splices and connects only to the black wires (hot) just like the old dimmer. The black wire in the top splice one can (should) go directly to the switch (no need for that splice) you will need to make a pigtail for the lower splice. The neutral/white stay as is. The new switch may have a ground screw, no need to connect the ground to it in Canada, it will be grounded through the box.
Scenarios where white may be used by the switch device... (but not in this case)
-Smart switches and timers need power so they will have both hot and neutral connections to power the device.
-Some electricians like(d) to feed the power to the octagonal box at the light, the then run two (14/2) wire cable down from the light to the switch. The white wire is then used as a switched wire (hot to the switch on black, power back to the light on white), it should in this case have black tape on it. This (using two wire) is no longer permitted by new code (only applies to new wiring) and every switch box needs a neutral now, so if feeding this way now it is 14/3 and the red will be used as the switch wire--why, see first point (powered switches).
-Last in some three-way switch scenarios white may have been used as a switch wire. Same as the point above, must have a neutral in the box so pretty much not in new code.
Avoid the temptation to backstab the switch, wires properly under screws.