void (boolean minimalMode) { myMinimalMode = minimalMode; if (myMinimalMode) { setMinimumButtonSize(JBUI.emptySize()); setLayoutPolicy(NOWRAP_LAYOUT_POLICY); setBorder(JBUI.Borders.empty()); setOpaque(false); } else { Insets i = myOrientation == SwingConstants.VERTICAL ? JBUI.CurrentTheme.Toolbar.verticalToolbarInsets() : JBUI.CurrentTheme.Toolbar.horizontalToolbarInsets(); if (i != null) { setBorder(JBUI.Borders.empty(i)); } else { setBorder(JBUI.Borders.empty(2)); } setMinimumButtonSize(myDecorateButtons ? JBUI.size(30, 20) : DEFAULT_MINIMUM_BUTTON_SIZE); setOpaque(true); setLayoutPolicy(AUTO_LAYOUT_POLICY); } }