Skip to content

Commit

Permalink
Changed Tree Toolbar button icons and adjusted button spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestian23 committed Jul 22, 2022
1 parent 6a46f6e commit b5cd7bd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TreePanel extends JPanel {
private JPanel main;
private TreeView treeView;
private TreeToolbarPanel toolbar;
private LegupUI legupUI;
// private LegupUI legupUI;

private JLabel status;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
package edu.rpi.legup.ui.proofeditorui.treeview;

import javax.swing.*;
import java.awt.Dimension;

public class TreeToolBarButton extends JButton {

private TreeToolBarName name;
private final Dimension MINIMUM_DIMENSION = new Dimension(60, 60);

public TreeToolBarButton(ImageIcon imageIcon, TreeToolBarName name) {
super(imageIcon);
this.name = name;
this.setSize(60, 60);
this.setSize(MINIMUM_DIMENSION.width, MINIMUM_DIMENSION.height);
this.setMinimumSize(this.MINIMUM_DIMENSION);
}

public TreeToolBarName getToolBarName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class TreeToolbarPanel extends JPanel {
*/
public TreeToolbarPanel(TreePanel treePanel) {
this.treePanel = treePanel;
this.setLayout(new GridLayout(4, 1));
this.setLayout(new GridLayout(4, 1, 0, 2));


addChild = new TreeToolBarButton(new ImageIcon(ClassLoader.getSystemResource("edu/rpi/legup/images/Legup/AddChild.png")), TreeToolBarName.ADD_CHILD);
delChild = new TreeToolBarButton(new ImageIcon(ClassLoader.getSystemResource("edu/rpi/legup/images/Legup/DelChild.png")), TreeToolBarName.DEL_CHILD);
Expand Down
Binary file modified src/main/resources/edu/rpi/legup/images/Legup/AddChild.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/edu/rpi/legup/images/Legup/Collapse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/edu/rpi/legup/images/Legup/DelChild.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/edu/rpi/legup/images/Legup/Merge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b5cd7bd

Please sign in to comment.