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);
}
Aggregations