Skip to content

Commit

Permalink
Slight styling update.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfwong committed Oct 27, 2016
1 parent b8a0454 commit 6cf7750
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/harmony/mastermind/ui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -502,13 +502,16 @@ private void initIndex(TableColumn<ReadOnlyTask, ReadOnlyTask> indexColumn) {
@Override
public void updateIndex(int index) {
super.updateIndex(index);

Text indexText = new Text(Integer.toString(index+ 1)+".");
indexText.getStyleClass().add("index-column");


if (isEmpty()
|| index < 0) {
setText(null);
this.setGraphic(null);
} else {
setText(Integer.toString(index
+ 1));
this.setGraphic(indexText);
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/view/MainWindow.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@
-fx-font-size: 18px;
}

.index-column{
-fx-font-weight: bold;
-fx-font-size: 16px;
-fx-fill: white;
-fx-font-style: oblique;
}

.pretty-date{
-fx-font-weight:bold;
}
Expand Down

0 comments on commit 6cf7750

Please sign in to comment.