diff --git a/src/main/java/seedu/us/among/ui/ResultDisplay.java b/src/main/java/seedu/us/among/ui/ResultDisplay.java index 0c6cb2a001b..6e704fb73c6 100644 --- a/src/main/java/seedu/us/among/ui/ResultDisplay.java +++ b/src/main/java/seedu/us/among/ui/ResultDisplay.java @@ -30,9 +30,12 @@ public class ResultDisplay extends UiPart { private ImageView loadingSpinnerPlaceholder; @FXML private ImageView errorPlaceholder; + @FXML + private ImageView backgroundPlaceholder; private Timeline errorGifTimeline; + private final Image background = new Image(this.getClass().getResourceAsStream("/images/background.png")); private final Image loadingSpinner = new Image(this.getClass().getResourceAsStream("/images/loading_spinner.gif")); private final Image error = new Image(this.getClass().getResourceAsStream("/images/error.gif")); @@ -43,6 +46,7 @@ public ResultDisplay() { super(FXML); this.loadingSpinnerPlaceholder.setImage(loadingSpinner); this.errorPlaceholder.setImage(error); + this.backgroundPlaceholder.setImage(background); // Set timeline for error message this.errorGifTimeline = new Timeline( new KeyFrame(Duration.ZERO, x -> this.getErrorPlaceholder().setVisible(true)), diff --git a/src/main/resources/images/background.png b/src/main/resources/images/background.png new file mode 100644 index 00000000000..c8352a97774 Binary files /dev/null and b/src/main/resources/images/background.png differ diff --git a/src/main/resources/view/DarkTheme.css b/src/main/resources/view/DarkTheme.css index 15e5f57d893..e7ec26385cb 100644 --- a/src/main/resources/view/DarkTheme.css +++ b/src/main/resources/view/DarkTheme.css @@ -146,6 +146,10 @@ -fx-background-color: derive(#1d1d1d, 30%); } +.result-background { + -fx-opacity: 0.3; +} + .result-display { -fx-background-color: transparent; -fx-font-family: "Segoe UI Light"; diff --git a/src/main/resources/view/MainWindow.fxml b/src/main/resources/view/MainWindow.fxml index 995b8aab6f6..93bafcca70c 100644 --- a/src/main/resources/view/MainWindow.fxml +++ b/src/main/resources/view/MainWindow.fxml @@ -13,7 +13,7 @@ + title="imPoster" minWidth="825" minHeight="625" onCloseRequest="#handleExit"> diff --git a/src/main/resources/view/ResultDisplay.fxml b/src/main/resources/view/ResultDisplay.fxml index 3769d4b8ea4..0324f6582f0 100644 --- a/src/main/resources/view/ResultDisplay.fxml +++ b/src/main/resources/view/ResultDisplay.fxml @@ -13,6 +13,8 @@