final boolean showLabelRight = UIToolBar.LABEL_RIGHT.equals(labelPosition);
final boolean showLabel = showLabelBottom || showLabelRight;
// two separate buttons for the command and the sub menu
final boolean separateButtons = hasAnyCommand(command) && dropDownMenu != null;
final Measure paddingTop = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-top");
final Measure paddingMiddle = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-middle");
final Measure paddingBottom = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-bottom");
final Measure paddingLeft = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-left");
final Measure paddingCenter = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-center");
final Measure paddingRight = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-right");
final Measure iconBigHeight = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-big-height");
final Measure iconSmallHeight = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-small-height");
final Measure iconBigWidth = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-big-width");
final Measure iconSmallWidth = resources.getThemeMeasure(facesContext, toolBar, "custom.icon-small-width");
// label style
final Style labelStyle;
if (showLabel) {
labelStyle = new Style();