changed delete icon

This commit is contained in:
hneemann 2016-06-26 11:45:45 +02:00
parent 5f0bb54e17
commit 141609e9be
4 changed files with 6 additions and 3 deletions

View File

@ -43,7 +43,10 @@ import static java.awt.event.InputEvent.CTRL_DOWN_MASK;
* @author hneemann
*/
public class CircuitComponent extends JComponent {
private static final Icon ICON_DELETE = IconCreator.create("edit-delete.png");
/**
* The delete icon, also used from {@link de.neemann.digital.gui.components.terminal.TerminalDialog}
*/
public static final Icon ICON_DELETE = IconCreator.create("delete.png");
private static final String DEL_ACTION = "myDelAction";
private final ElementLibrary library;

View File

@ -2,8 +2,8 @@ package de.neemann.digital.gui.components.terminal;
import de.neemann.digital.core.element.ElementAttributes;
import de.neemann.digital.core.element.Keys;
import de.neemann.digital.gui.components.CircuitComponent;
import de.neemann.digital.lang.Lang;
import de.neemann.gui.IconCreator;
import de.neemann.gui.ToolTipAction;
import javax.swing.*;
@ -36,7 +36,7 @@ public class TerminalDialog extends JDialog {
getContentPane().add(new JScrollPane(textArea));
JToolBar toolBar = new JToolBar();
toolBar.add(new ToolTipAction(Lang.get("menu_terminalDelete"), IconCreator.create("edit-delete.png")) {
toolBar.add(new ToolTipAction(Lang.get("menu_terminalDelete"), CircuitComponent.ICON_DELETE) {
@Override
public void actionPerformed(ActionEvent e) {
textArea.setText("");

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB