Skip to content

Commit

Permalink
Fix CSS referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
praveer922 committed Nov 4, 2016
1 parent 4f6a882 commit b267787
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/java/seedu/dailyplanner/ui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
</padding>
</AnchorPane>
<AnchorPane maxHeight="30.0" prefHeight="30.0" prefWidth="200.0" styleClass="text-pane" />
<SplitPane id="splitPane" fx:id="splitPane" dividerPositions="0.5" VBox.vgrow="ALWAYS">
<items>
<VBox prefHeight="200.0" prefWidth="100.0">
Expand Down

0 comments on commit b267787

Please sign in to comment.