From a94666a8d60d6218be90935e031f7f1d89579d19 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Mon, 8 Jan 2024 11:49:02 -0500 Subject: [PATCH] More style refactoring for tiled collections. --- .../com/andrewlalis/perfin/PerfinApp.java | 3 +++ .../perfin/view/ProfilesStage.java | 7 +++++- src/main/resources/account-view.fxml | 4 ++-- src/main/resources/accounts-view.fxml | 8 +++---- src/main/resources/main-view.fxml | 1 - src/main/resources/profiles-view.fxml | 23 ++++++++++++------- src/main/resources/style/base.css | 17 +++++++++++++- .../resources/style/startup-splash-screen.css | 2 +- src/main/resources/transactions-view.fxml | 4 ++-- 9 files changed, 49 insertions(+), 20 deletions(-) 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 @@