WOBS-3528: Adds more logic for a more esthetic toolbar

 - Trims | from the beginning and and of toolbar
 - If frontcolor and backcolor are on 1 row, counts them as 3
   instead of 2 buttons