Skip to content

Commit

Permalink
add color to archived tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
zavfel committed Nov 6, 2016
1 parent 7610118 commit 1aa8df5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main/java/harmony/mastermind/ui/ArchivesTableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,8 @@ public void updateItem(Boolean isRecur, boolean isEmpty) {
// @@author A0138862W
private Text generateStyledText(ReadOnlyTask readOnlyTask, String text) {
Text taskName = new Text(text);

if (readOnlyTask.isHappening()) {
taskName.getStyleClass().add("happening");
} else if (readOnlyTask.isDue()) {
taskName.getStyleClass().add("overdue");
} else {
taskName.getStyleClass().add("normal");
}
taskName.getStyleClass().add("completed");

return taskName;
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/view/MainWindow.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
-fx-quaternary: #F92672; /* pink */
-fx-quinary: #272822; /* black */
-fx-quinary-alt: #1f201b;
-fx-senary: #AE81FF; /* purple */
}

.table-view {
Expand Down Expand Up @@ -213,6 +214,10 @@
-fx-fill: -fx-secondary;
}

.completed{
-fx-fill: -fx-senary;
}

.titled-pane,
.titled-pane .title,
.titled-pane .content{
Expand Down

0 comments on commit 1aa8df5

Please sign in to comment.