Search in sources :

Example 1 with IconButton

use of com.intellij.openapi.ui.popup.IconButton in project intellij-community by JetBrains.

the class PresentationModeProgressPanel method createUIComponents.

private void createUIComponents() {
    myRootPanel = new TransparentPanel(0.5f) {

        @Override
        public boolean isVisible() {
            UISettings ui = UISettings.getInstance();
            return ui.getPresentationMode() || !ui.getShowStatusBar() && Registry.is("ide.show.progress.without.status.bar");
        }
    };
    IconButton iconButton = new IconButton(myProgress.getInfo().getCancelTooltipText(), AllIcons.Process.Stop, AllIcons.Process.StopHovered);
    myCancelButton = new InplaceButton(iconButton, new ActionListener() {

        @Override
        public void actionPerformed(@NotNull ActionEvent e) {
            myProgress.cancelRequest();
        }
    }).setFillBg(false);
}
Also used : UISettings(com.intellij.ide.ui.UISettings) IconButton(com.intellij.openapi.ui.popup.IconButton) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) TransparentPanel(com.intellij.ui.TransparentPanel) InplaceButton(com.intellij.ui.InplaceButton)

Aggregations

UISettings (com.intellij.ide.ui.UISettings)1 IconButton (com.intellij.openapi.ui.popup.IconButton)1 InplaceButton (com.intellij.ui.InplaceButton)1 TransparentPanel (com.intellij.ui.TransparentPanel)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1