Can I add a border to my legends boxes?

My free slots on my calendar are white. The background of the legends box is white. It looks a bit unfinished.

Is there a way I can add a black border around each of the coloured legend boxes just to make it look a bit nicer?