diff --git a/src/main/java/com/andrewlalis/perfin/PerfinApp.java b/src/main/java/com/andrewlalis/perfin/PerfinApp.java index f7aa5cb..42e4d3f 100644 --- a/src/main/java/com/andrewlalis/perfin/PerfinApp.java +++ b/src/main/java/com/andrewlalis/perfin/PerfinApp.java @@ -61,6 +61,9 @@ public class PerfinApp extends Application { Platform.runLater(() -> { stage.hide(); Scene mainViewScene = SceneUtil.load("/main-view.fxml"); + mainViewScene.getStylesheets().addAll( + PerfinApp.class.getResource("/style/base.css").toExternalForm() + ); stage.setScene(mainViewScene); stage.setTitle("Perfin"); stage.getIcons().add(ImageCache.getLogo64()); diff --git a/src/main/java/com/andrewlalis/perfin/view/ProfilesStage.java b/src/main/java/com/andrewlalis/perfin/view/ProfilesStage.java index db102f0..cfd86c7 100644 --- a/src/main/java/com/andrewlalis/perfin/view/ProfilesStage.java +++ b/src/main/java/com/andrewlalis/perfin/view/ProfilesStage.java @@ -1,5 +1,6 @@ package com.andrewlalis.perfin.view; +import javafx.scene.Scene; import javafx.stage.Modality; import javafx.stage.Stage; import javafx.stage.Window; @@ -15,7 +16,11 @@ public class ProfilesStage extends Stage { setTitle("Profiles"); setAlwaysOnTop(false); initModality(Modality.APPLICATION_MODAL); - setScene(SceneUtil.load("/profiles-view.fxml")); + Scene scene = SceneUtil.load("/profiles-view.fxml"); + scene.getStylesheets().addAll( + ProfilesStage.class.getResource("/style/base.css").toExternalForm() + ); + setScene(scene); } public static void open(Window owner) { diff --git a/src/main/resources/account-view.fxml b/src/main/resources/account-view.fxml index e193955..1529d47 100644 --- a/src/main/resources/account-view.fxml +++ b/src/main/resources/account-view.fxml @@ -63,8 +63,8 @@