Skip to content

Commit 2715495

Browse files
ddamkeddamke
authored andcommitted
remove FontAwesome Imports
1 parent 40a42f6 commit 2715495

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

src/main/java/de/doubleslash/keeptime/common/Resources.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum RESOURCE {
4343

4444
SVG_CALENDAR_DAYS_ICON("/svgs/calendar-days.svg"),
4545

46-
SVG_CLOSE_ICON("/svgs/x.svg"),
46+
SVG_CLOSE_ICON("/svgs/xmark.svg"),
4747

4848
SVG_SETTINGS_ICON("/svgs/gear.svg"),
4949

src/main/java/de/doubleslash/keeptime/view/ReportController.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
import de.doubleslash.keeptime.view.worktable.ProjectTableRow;
4444
import de.doubleslash.keeptime.view.worktable.TableRow;
4545
import de.doubleslash.keeptime.view.worktable.WorkTableRow;
46-
import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon;
47-
import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView;
4846
import javafx.beans.property.ReadOnlyObjectWrapper;
4947
import javafx.event.ActionEvent;
5048
import javafx.event.EventHandler;
@@ -282,7 +280,7 @@ public void updateItem(final LocalDate item, final boolean empty) {
282280
}
283281

284282
private Button createDeleteWorkButton(final Work w) {
285-
final Button deleteButton = new Button("", new FontAwesomeIconView(FontAwesomeIcon.TRASH));
283+
final Button deleteButton = new Button("");
286284
deleteButton.setOnAction(e -> {
287285
LOG.info("Delete work clicked.");
288286
final Alert alert = new Alert(AlertType.CONFIRMATION);
@@ -304,7 +302,7 @@ private Button createDeleteWorkButton(final Work w) {
304302
}
305303

306304
private Button createEditWorkButton(final Work work) {
307-
final Button editButton = new Button("", new FontAwesomeIconView(FontAwesomeIcon.PENCIL));
305+
final Button editButton = new Button("");
308306
editButton.setOnAction(e -> {
309307
LOG.info("Edit work clicked.");
310308
final Dialog<Work> dialog = setupEditWorkDialog(work);
@@ -361,7 +359,7 @@ private GridPane setUpEditWorkGridPane(final Work work, final Dialog<Work> dialo
361359
}
362360

363361
private Button createCopyProjectButton(final List<Work> projectWork) {
364-
final Button copyButton = new Button("", new FontAwesomeIconView(FontAwesomeIcon.CLIPBOARD));
362+
final Button copyButton = new Button("");
365363
final EventHandler<ActionEvent> eventListener = actionEvent -> {
366364
LOG.debug("Copy to Clipboard clicked.");
367365
final ProjectReport pr = new ProjectReport(projectWork.size());
@@ -381,7 +379,7 @@ private Button createCopyProjectButton(final List<Work> projectWork) {
381379
}
382380

383381
private Node createCopyWorkButton(final Work w) {
384-
final Button copyButton = new Button("", new FontAwesomeIconView(FontAwesomeIcon.CLIPBOARD));
382+
final Button copyButton = new Button("");
385383
final EventHandler<ActionEvent> eventListener = actionEvent -> {
386384
LOG.debug("Copy to Clipboard clicked.");
387385
final Clipboard clipboard = Clipboard.getSystemClipboard();

src/main/java/de/doubleslash/keeptime/view/ViewController.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import de.doubleslash.keeptime.exceptions.FXMLLoaderException;
4444
import de.doubleslash.keeptime.model.Model;
4545
import de.doubleslash.keeptime.model.Project;
46-
import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView;
4746
import javafx.application.Platform;
4847
import javafx.beans.binding.Bindings;
4948
import javafx.beans.property.BooleanProperty;
@@ -135,16 +134,16 @@ public class ViewController {
135134
private Canvas canvas;
136135

137136
@FXML
138-
private FontAwesomeIconView calendarIcon;
137+
private Button calendarIcon;
139138

140139
@FXML
141-
private FontAwesomeIconView settingsIcon;
140+
private Button settingsIcon;
142141

143142
@FXML
144-
private FontAwesomeIconView minimizeIcon;
143+
private Button minimizeIcon;
145144

146145
@FXML
147-
private FontAwesomeIconView closeIcon;
146+
private Button closeIcon;
148147

149148
private ColorTimeLine mainColorTimeLine;
150149

@@ -182,7 +181,7 @@ public ViewController(final Model model, final Controller controller) {
182181
}
183182

184183
@FXML
185-
private void initialize() {
184+
private void initialize() throws ParserConfigurationException, IOException, SAXException {
186185

187186
availableProjectsListView.setFixedCellSize(13);
188187

0 commit comments

Comments
 (0)