void () { super.updateUI(); if (ActionPlaces.EDITOR_TOOLBAR.equals(myPlace)) { // tweak font & color for editor toolbar to match editor tabs style setFont(UIUtil.getLabelFont(UIUtil.FontSize.SMALL)); setForeground(ColorUtil.dimmer(JBColor.BLACK)); } else { AnAction action = getAction(); setFont(action.useSmallerFontForTextInToolbar() ? JBUI.Fonts.toolbarSmallComboBoxFont() : StartupUiUtil.getLabelFont()); } }