Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switch clipboard svgs for better usability
  • Loading branch information
ddamke authored and ddamke committed Nov 3, 2023
commit 7cf6fd8951d14dd75c850a1a25d4cfae2f61a006
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ private void updateReport(final LocalDate dateToShow) {
}

final HBox projectButtonBox = new HBox();
projectButtonBox.getChildren().add(createCopyProjectNotesButton(onlyCurrentProjectWork));
projectButtonBox.getChildren().add(createCopyProjectNameButton(project.getName()));
projectButtonBox.getChildren().add(createCopyProjectNotesButton(onlyCurrentProjectWork));

final TreeItem<TableRow> projectRow = new TreeItem<>(
new ProjectTableRow(project, projectWorkSeconds, projectButtonBox));
Expand Down Expand Up @@ -418,7 +418,7 @@ private GridPane setUpEditWorkGridPane(final Work work, final Dialog<Work> dialo
}

private Button createCopyProjectNotesButton(final List<Work> projectWork) {
final Button copyNotesButton = new Button("", SvgNodeProvider.getSvgNodeWithScale(RESOURCE.SVG_CLIPBOARD, 0.03, 0.03));
final Button copyNotesButton = new Button("", SvgNodeProvider.getSvgNodeWithScale(RESOURCE.SVG_MULTIPLE_CLIPBOARD, 0.03, 0.03));
copyNotesButton.setMaxSize(20, 18);
copyNotesButton.setMinSize(20, 18);
copyNotesButton.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
Expand All @@ -443,7 +443,7 @@ private Button createCopyProjectNotesButton(final List<Work> projectWork) {
return copyNotesButton;
}
private Button createCopyProjectNameButton(String projectName) {
final Button copyProjectNameButton = new Button("", SvgNodeProvider.getSvgNodeWithScale(RESOURCE.SVG_COPY_PROJECT_NAME_ICON, 0.03, 0.03));
final Button copyProjectNameButton = new Button("", SvgNodeProvider.getSvgNodeWithScale(RESOURCE.SVG_CLIPBOARD, 0.03, 0.03));
copyProjectNameButton.setMaxSize(20, 18);
copyProjectNameButton.setMinSize(20, 18);
copyProjectNameButton.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
Expand Down