Skip to content

Commit 1820184

Browse files
committed
Add deploy shortcut (ctrl+r) and update icon
The dialog graphic is now the settings icon, since it shows deploy settings. It also looked weird before, since it had the same play icon in both a button and the dialog header. Plus, I'm somewhat concerned that the unlabled play icon could be interpreted as a status icon (ie: it's indicating that something is currently running)
1 parent 7dc3d72 commit 1820184

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ui/src/main/java/edu/wpi/grip/ui/MainWindowController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void quit() {
192192

193193
@FXML
194194
public void deploy() {
195-
ImageView graphic = new ImageView(new Image("/edu/wpi/grip/ui/icons/deploy.png"));
195+
ImageView graphic = new ImageView(new Image("/edu/wpi/grip/ui/icons/settings.png"));
196196
graphic.setFitWidth(DPIUtility.SMALL_ICON_SIZE);
197197
graphic.setFitHeight(DPIUtility.SMALL_ICON_SIZE);
198198

ui/src/main/resources/edu/wpi/grip/ui/MainWindow.fxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@
9898
</Menu>
9999
<Menu text="Tools">
100100
<MenuItem text="Deploy" onAction="#deploy">
101+
<accelerator>
102+
<KeyCodeCombination alt="UP" code="R" control="DOWN" meta="UP" shift="UP" shortcut="UP"/>
103+
</accelerator>
101104
<graphic>
102105
<ImageView styleClass="menu-graphic">
103106
<fitWidth>

0 commit comments

Comments
 (0)