diff --git a/src/seedu/addressbook/commands/AddCommand.java b/src/seedu/addressbook/commands/AddCommand.java index 78ad0da21..f98e4f8dd 100644 --- a/src/seedu/addressbook/commands/AddCommand.java +++ b/src/seedu/addressbook/commands/AddCommand.java @@ -5,6 +5,7 @@ import seedu.addressbook.data.tag.Tag; import java.util.HashSet; +import java.util.List; import java.util.Set; /** @@ -60,7 +61,8 @@ public ReadOnlyPerson getPerson() { public CommandResult execute() { try { addressBook.addPerson(toAdd); - return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd)); + List allPersons = addressBook.getAllPersons().immutableListView(); + return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd), allPersons); } catch (UniquePersonList.DuplicatePersonException dpe) { return new CommandResult(MESSAGE_DUPLICATE_PERSON); } diff --git a/src/seedu/addressbook/commands/Command.java b/src/seedu/addressbook/commands/Command.java index a54cbcb5b..a74002c13 100644 --- a/src/seedu/addressbook/commands/Command.java +++ b/src/seedu/addressbook/commands/Command.java @@ -39,13 +39,15 @@ public static String getMessageForPersonListShownSummary(List allPersons = addressBook.getAllPersons().immutableListView(); + return new CommandResult(String.format(MESSAGE_DELETE_PERSON_SUCCESS, target), allPersons); } catch (IndexOutOfBoundsException ie) { return new CommandResult(Messages.MESSAGE_INVALID_PERSON_DISPLAYED_INDEX); diff --git a/src/seedu/addressbook/ui/DarkTheme.css b/src/seedu/addressbook/ui/DarkTheme.css index 9e6314894..723ca0d96 100644 --- a/src/seedu/addressbook/ui/DarkTheme.css +++ b/src/seedu/addressbook/ui/DarkTheme.css @@ -4,13 +4,13 @@ -fx-font-size: 12pt; -fx-font-family: "Consolas"; -fx-font-weight: bold; - -fx-text-fill: yellow; + -fx-text-fill: orange; -fx-control-inner-background: derive(#1d1d1d,20%); } .text-area { - -fx-background-color: black; - -fx-control-inner-background: black; + -fx-background-color: pink; + -fx-control-inner-background: lightblue; -fx-font-family: "Segoe UI Semibold"; -fx-font-size: 10pt; -fx-padding: 5 5 5 5; diff --git a/src/seedu/addressbook/ui/MainWindow.java b/src/seedu/addressbook/ui/MainWindow.java index 1fdde2a4f..d2be41f4e 100644 --- a/src/seedu/addressbook/ui/MainWindow.java +++ b/src/seedu/addressbook/ui/MainWindow.java @@ -80,6 +80,7 @@ public void clearOutputConsole(){ /** Displays the result of a command execution to the user. */ public void displayResult(CommandResult result) { clearOutputConsole(); + outputConsole.setText("List of Contact(s) found: \n"); final Optional> resultPersons = result.getRelevantPersons(); if(resultPersons.isPresent()) { display(resultPersons.get()); diff --git a/test/java/seedu/addressbook/logic/LogicTest.java b/test/java/seedu/addressbook/logic/LogicTest.java index 396fb4bc9..11faa1768 100644 --- a/test/java/seedu/addressbook/logic/LogicTest.java +++ b/test/java/seedu/addressbook/logic/LogicTest.java @@ -157,7 +157,7 @@ public void execute_add_successful() throws Exception { assertCommandBehavior(helper.generateAddCommand(toBeAdded), String.format(AddCommand.MESSAGE_SUCCESS, toBeAdded), expectedAB, - false, + true, Collections.emptyList()); }