File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
ui/src/main/java/edu/wpi/grip/ui/pipeline Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ public class StepController implements Controller {
7373 private ControllerMap <InputSocketController , Node > inputSocketMapManager ;
7474 private ControllerMap <OutputSocketController , Node > outputSocketMapManager ;
7575
76+ private static final Image UP_ARROW = new Image ("/edu/wpi/grip/ui/icons/up.png" );
77+ private static final Image DOWN_ARROW = new Image ("/edu/wpi/grip/ui/icons/down.png" );
78+
7679 @ Inject
7780 StepController (Pipeline pipeline ,
7881 InputSocketControllerFactory inputSocketControllerFactory ,
@@ -105,7 +108,7 @@ private void initialize() {
105108 .equals (SocketHint .View .NONE ))) {
106109 expand .setManaged (false );
107110 } else {
108- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/up.png" ) );
111+ expandIcon .setImage (UP_ARROW );
109112 }
110113
111114 // Add a SocketControlView for each input socket and output socket
@@ -183,14 +186,14 @@ private void expand() {
183186 }
184187 }
185188 closeUp ();
186- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/down.png" ) );
189+ expandIcon .setImage (DOWN_ARROW );
187190 expanded = false ;
188191 } else {
189192 for (InputSocketController input : inputSockets ) {
190193 fadeIn (input );
191194 }
192195 reopen ();
193- expandIcon .setImage (new Image ( "/edu/wpi/grip/ui/icons/up.png" ) );
196+ expandIcon .setImage (UP_ARROW );
194197 expanded = true ;
195198 }
196199
You can’t perform that action at this time.
0 commit comments