diff --git a/src/main/java/seedu/dailyplanner/ui/MainWindow.java b/src/main/java/seedu/dailyplanner/ui/MainWindow.java index 73a4168f9806..429ee620ae6a 100644 --- a/src/main/java/seedu/dailyplanner/ui/MainWindow.java +++ b/src/main/java/seedu/dailyplanner/ui/MainWindow.java @@ -102,7 +102,14 @@ private void configure(String appTitle, String addressBookName, Config config, U setWindowMinSize(); setWindowDefaultSize(prefs); scene = new Scene(rootLayout); + + String css = getClass().getResource("/view/DarkTheme.css").toExternalForm(); + scene.getStylesheets().clear(); + scene.getStylesheets().add(css); + primaryStage.setScene(scene); + + setAccelerators(); } diff --git a/src/main/resources/view/MainWindow.fxml b/src/main/resources/view/MainWindow.fxml index 1ddb47f1c3a0..8140ffdba392 100644 --- a/src/main/resources/view/MainWindow.fxml +++ b/src/main/resources/view/MainWindow.fxml @@ -41,7 +41,6 @@ -