Skip to content

Commit e60a32a

Browse files
committed
changed font size to 12 for better readability and set prefwidth to 50.0 to be able to display the time. I also made an alert if a linux user wants to change his settings to project list right because this makes some trouble with the linux version
1 parent 211bd0d commit e60a32a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ private void initialize() throws IOException {
324324
} else {
325325
borderPane.setRight(null);
326326
borderPane.setLeft(projectsVBox);
327+
if (System.getProperty("os.name").contains("Linux")) {
328+
final Alert warning = new Alert(AlertType.WARNING);
329+
warning.setTitle("No Linux Support");
330+
warning.setHeaderText(null);
331+
warning.setContentText(
332+
"The project list on the left side has no Linux support. Please change your settings so, that your project list is on the right side.");
333+
warning.showAndWait();
334+
}
327335

328336
}
329337
};
@@ -440,7 +448,7 @@ private void initialize() throws IOException {
440448
return Duration.between(work.getStartTime(), work.getEndTime()).getSeconds();
441449
}).sum();
442450
label.setText(DateFormatter.secondsToHHMMSS(seconds));
443-
label.setFont(new Font("Arial", 10));
451+
label.setFont(new Font("Arial", 12));
444452
}
445453

446454
updateProjectColorTimeline();

src/main/resources/ProjectDetailLayout.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<Pane minHeight="-Infinity" prefHeight="17.0" prefWidth="114.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1">
77
<children>
88
<Label prefWidth="70.0" text="Projectname" />
9-
<Label layoutX="69.0" prefWidth="45.0" text="00:00:00" />
9+
<Label layoutX="69.0" prefWidth="50.0" text="00:00:00" />
1010
</children>
1111
</Pane>

0 commit comments

Comments
 (0)