Skip to content

Commit d848b7a

Browse files
committed
Add push, pull icons
1 parent fd90393 commit d848b7a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

client/src/main/java/io/github/tobiasbriones/cp/rmifilesystem/client/content/editor/EditorView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import javafx.scene.control.Button;
2020
import javafx.scene.control.Label;
2121
import javafx.scene.control.TextArea;
22+
import javafx.scene.image.Image;
23+
import javafx.scene.image.ImageView;
2224
import javafx.scene.layout.HBox;
2325
import javafx.scene.layout.Priority;
2426
import javafx.scene.layout.VBox;
@@ -59,9 +61,11 @@ public void createView() {
5961
saveButton.setPrefWidth(SAVE_BUTTON_WIDTH);
6062

6163
pushButton.setText("Push");
64+
pushButton.setGraphic(new ImageView(new Image("/ic_push.png")));
6265
pushButton.setPrefWidth(SAVE_BUTTON_WIDTH / 2 - 4);
6366

6467
pullButton.setText("Pull");
68+
pullButton.setGraphic(new ImageView(new Image("/ic_pull.png")));
6569
pullButton.setPrefWidth(SAVE_BUTTON_WIDTH / 2 - 4);
6670

6771
servicePane.getChildren().addAll(pushButton, pullButton);
235 Bytes
Loading
237 Bytes
Loading

0 commit comments

Comments
 (0)