4343import de .doubleslash .keeptime .view .worktable .ProjectTableRow ;
4444import de .doubleslash .keeptime .view .worktable .TableRow ;
4545import de .doubleslash .keeptime .view .worktable .WorkTableRow ;
46+ import de .jensd .fx .glyphs .fontawesome .FontAwesomeIcon ;
47+ import de .jensd .fx .glyphs .fontawesome .FontAwesomeIconView ;
4648import javafx .beans .property .ReadOnlyObjectWrapper ;
4749import javafx .event .ActionEvent ;
4850import javafx .event .EventHandler ;
@@ -224,7 +226,7 @@ private void updateReport(final LocalDate dateToShow) {
224226 new ProjectTableRow (project , projectWorkSeconds , projectButtonBox ), circle );
225227
226228 for (final Work w : onlyCurrentProjectWork ) {
227- final HBox workButtonBox = new HBox ();
229+ final HBox workButtonBox = new HBox (5.0 );
228230 workButtonBox .getChildren ().add (createEditWorkButton (w ));
229231 workButtonBox .getChildren ().add (createDeleteWorkButton (w ));
230232 final TreeItem <TableRow > workRow = new TreeItem <>(new WorkTableRow (w , workButtonBox ));
@@ -272,7 +274,7 @@ public void updateItem(final LocalDate item, final boolean empty) {
272274 }
273275
274276 private Button createDeleteWorkButton (final Work w ) {
275- final Button deleteButton = new Button ("delete" );
277+ final Button deleteButton = new Button ("" , new FontAwesomeIconView ( FontAwesomeIcon . TRASH ) );
276278 deleteButton .setOnAction (e -> {
277279 LOG .info ("Delete work clicked." );
278280 final Alert alert = new Alert (AlertType .CONFIRMATION );
@@ -294,7 +296,7 @@ private Button createDeleteWorkButton(final Work w) {
294296 }
295297
296298 private Button createEditWorkButton (final Work work ) {
297- final Button editButton = new Button ("edit" );
299+ final Button editButton = new Button ("" , new FontAwesomeIconView ( FontAwesomeIcon . PENCIL ) );
298300 editButton .setOnAction (e -> {
299301 LOG .info ("Edit work clicked." );
300302 final Dialog <Work > dialog = setupEditWorkDialog (work );
@@ -346,7 +348,7 @@ private GridPane setUpEditWorkGridPane(final Work work, final Dialog<Work> dialo
346348 }
347349
348350 private Button createProjectReportButton (final List <Work > projectWork ) {
349- final Button bProjectReport = new Button ("Copy to clipboard" );
351+ final Button bProjectReport = new Button ("" , new FontAwesomeIconView ( FontAwesomeIcon . CLIPBOARD ) );
350352 final EventHandler <ActionEvent > eventListener = actionEvent -> {
351353 LOG .debug ("Copy to Clipboard clicked." );
352354 final ProjectReport pr = new ProjectReport (projectWork .size ());
0 commit comments