From b1dedfaa54ebb812076779cbb69cba0d2f7cc346 Mon Sep 17 00:00:00 2001 From: Daniel Meechan Date: Fri, 24 Mar 2017 02:58:39 +0000 Subject: [PATCH] Minor optimisations --- download/Version List.md | 17 +++++++++++++++++ src/Task.java | 21 ++------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 download/Version List.md diff --git a/download/Version List.md b/download/Version List.md new file mode 100644 index 0000000..58beac5 --- /dev/null +++ b/download/Version List.md @@ -0,0 +1,17 @@ +Version 1: + 1.0: + - Manage tasks and display countdown timer + 1.1: CURRENT STABLE BUILD + - Display instructions on first launch + - Save and load user data between launches + 1.2: + - Optimisation improvemnts + - Fix bug with countdown timer display startpoint + 1.3: + - Introduce custom implementation of ListView for increased flexibility + 1.4: + - Add settings options + - Add themes: light and dark + - Fix colour of slider control + 1.5: + - \ No newline at end of file diff --git a/src/Task.java b/src/Task.java index 5a53d59..c2a09e4 100644 --- a/src/Task.java +++ b/src/Task.java @@ -7,9 +7,7 @@ class Task implements Serializable{ private final StringProperty name = new SimpleStringProperty(""); // name of task private boolean isNotDone; // is the timer currently marked as done - //private Color colour; - //private ObjectProperty colour = new SimpleObjectProperty<>(Color.web("#ffffff")); // task's user-defined colour - private final ObjectProperty colour = new SimpleObjectProperty<>(); + private final ObjectProperty colour = new SimpleObjectProperty<>(); // task's user-defined colour private final IntegerProperty minutes = new SimpleIntegerProperty(0); private final IntegerProperty seconds = new SimpleIntegerProperty(0); @@ -20,7 +18,7 @@ public Task(String name, int minutes, Color colour) { setNotDone(true); setMinutes(minutes); setColour(colour); - //colour.plat + } @Override @@ -31,7 +29,6 @@ public String toString() { //////////////////////////// - public void setNotDone(boolean notDone) { isNotDone = notDone; } @@ -68,20 +65,6 @@ public IntegerProperty minutesProperty() { return minutes; } - /* - public Color getColour() { - return colour.get(); - } - - public void setColour(Color colour) { - this.colour.set(colour); - } - - public ObjectProperty colourProperty() { - return colour; - } - */ - public java.awt.Color getColour() { return colour.get(); }