Skip to content

Commit

Permalink
Improve closed eatery name indicator
Browse files Browse the repository at this point in the history
- Switch from hightlight and Xs to a simple text indicator
  • Loading branch information
dvrylc committed Nov 7, 2019
1 parent 2819d30 commit 5fb1e3b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/seedu/address/ui/ResultDisplay.java
Expand Up @@ -67,12 +67,8 @@ public void setFeedbackToUser(CommandResult commandResult) {

if (eateryToShow != null) {
// Basic info
if (eateryToShow.getIsOpen()) {
eateryName.setText(eateryToShow.getName().fullName);
} else {
eateryName.setText(String.format("✘ %s ✘", eateryToShow.getName().fullName));
eateryName.setStyle("-fx-background-color: rgba(218, 88, 65, 0.25);");
}
eateryName.setText(eateryToShow.getIsOpen() ?
eateryToShow.getName().fullName : String.format("%s [closed]", eateryToShow.getName().fullName));
eateryCategory.setText(eateryToShow.getCategory().getName());
eateryAddress.setText(eateryToShow.getAddress().value);

Expand Down Expand Up @@ -106,7 +102,6 @@ private void reset() {
commandFeedback.setText("");

eateryName.setText("");
eateryName.setStyle("-fx-background-color: transparent;");
eateryCategory.setText("");
eateryAddress.setText("");
eateryTags.getChildren().clear();
Expand Down

0 comments on commit 5fb1e3b

Please sign in to comment.