From 25457c550804ce8f03dddc741595a837b7d0544c Mon Sep 17 00:00:00 2001 From: Wang Shiyao Date: Sun, 3 Nov 2019 18:44:17 +0800 Subject: [PATCH] fix: update UI css: Liberry Theme --- .../address/logic/commands/SetCommand.java | 5 +- .../java/seedu/address/ui/MainWindow.java | 1 - src/main/java/seedu/address/ui/UiManager.java | 2 +- src/main/resources/view/BookListCard.fxml | 42 ++- src/main/resources/view/BookListPanel.fxml | 2 +- src/main/resources/view/BorrowerPanel.fxml | 16 +- src/main/resources/view/CommandBox.fxml | 2 +- src/main/resources/view/LiBerryTheme.css | 277 ++++++++++++++++++ src/main/resources/view/MainWindow.fxml | 24 +- src/main/resources/view/ResultDisplay.fxml | 5 +- 10 files changed, 337 insertions(+), 39 deletions(-) create mode 100644 src/main/resources/view/LiBerryTheme.css diff --git a/src/main/java/seedu/address/logic/commands/SetCommand.java b/src/main/java/seedu/address/logic/commands/SetCommand.java index 37e9f9da6d3..a89616d4e54 100644 --- a/src/main/java/seedu/address/logic/commands/SetCommand.java +++ b/src/main/java/seedu/address/logic/commands/SetCommand.java @@ -26,10 +26,9 @@ public class SetCommand extends ReversibleCommand { public static final String MESSAGE_USAGE = COMMAND_WORD + ": Sets custom user settings of the application. \n" + "Existing values will be overwritten by the input values.\n" - + "Parameters: INDEX (must be a positive integer) \n" + "[" + PREFIX_LOAN_PERIOD + "LOAN_PERIOD] " - + "[" + PREFIX_RENEW_PERIOD + "RENEW_PERIOD]\n" - + "[" + PREFIX_FINE_INCREMENT + "FINE_INCREMENT]\n" + + "[" + PREFIX_RENEW_PERIOD + "RENEW_PERIOD] " + + "[" + PREFIX_FINE_INCREMENT + "FINE_INCREMENT] " + "[" + PREFIX_MAX_RENEWS + "MAX_RENEWS]\n" + "Example: " + COMMAND_WORD + " " + PREFIX_LOAN_PERIOD + "14 " diff --git a/src/main/java/seedu/address/ui/MainWindow.java b/src/main/java/seedu/address/ui/MainWindow.java index a7e8e6c6ffe..8c4bccd42ed 100644 --- a/src/main/java/seedu/address/ui/MainWindow.java +++ b/src/main/java/seedu/address/ui/MainWindow.java @@ -68,7 +68,6 @@ public MainWindow(Stage primaryStage, Logic logic) { } else { mode.setText(NORMAL_MODE); } - resultDisplayPlaceholder.setStyle("-fx-background-color: #2b2b2b#2b2b2b"); } public Stage getPrimaryStage() { diff --git a/src/main/java/seedu/address/ui/UiManager.java b/src/main/java/seedu/address/ui/UiManager.java index fca2157ad18..000949baca9 100644 --- a/src/main/java/seedu/address/ui/UiManager.java +++ b/src/main/java/seedu/address/ui/UiManager.java @@ -63,7 +63,7 @@ void showAlertDialogAndWait(Alert.AlertType type, String title, String headerTex private static void showAlertDialogAndWait(Stage owner, AlertType type, String title, String headerText, String contentText) { final Alert alert = new Alert(type); - alert.getDialogPane().getStylesheets().add("view/DarkTheme.css"); + alert.getDialogPane().getStylesheets().add("view/LiBerryTheme.css"); alert.initOwner(owner); alert.setTitle(title); alert.setHeaderText(headerText); diff --git a/src/main/resources/view/BookListCard.fxml b/src/main/resources/view/BookListCard.fxml index 31cb0ce25c8..192d19535c2 100644 --- a/src/main/resources/view/BookListCard.fxml +++ b/src/main/resources/view/BookListCard.fxml @@ -10,18 +10,17 @@ - - + - + - + - - - - - - + + + diff --git a/src/main/resources/view/BookListPanel.fxml b/src/main/resources/view/BookListPanel.fxml index 895468d8e27..5e45690098e 100644 --- a/src/main/resources/view/BookListPanel.fxml +++ b/src/main/resources/view/BookListPanel.fxml @@ -4,5 +4,5 @@ - + diff --git a/src/main/resources/view/BorrowerPanel.fxml b/src/main/resources/view/BorrowerPanel.fxml index d4d8dc4afc8..e816ea7bda6 100644 --- a/src/main/resources/view/BorrowerPanel.fxml +++ b/src/main/resources/view/BorrowerPanel.fxml @@ -5,21 +5,25 @@ - - + + + + diff --git a/src/main/resources/view/ResultDisplay.fxml b/src/main/resources/view/ResultDisplay.fxml index ac6bc292efb..b37835860a5 100644 --- a/src/main/resources/view/ResultDisplay.fxml +++ b/src/main/resources/view/ResultDisplay.fxml @@ -3,7 +3,10 @@ -