diff --git a/src/main/kotlin/com/marvinelsen/willow/WillowApplication.kt b/src/main/kotlin/com/marvinelsen/willow/WillowApplication.kt index 2465bff..54f9a29 100644 --- a/src/main/kotlin/com/marvinelsen/willow/WillowApplication.kt +++ b/src/main/kotlin/com/marvinelsen/willow/WillowApplication.kt @@ -66,6 +66,7 @@ class WillowApplication : Application() { val root = fxmlLoader.load(javaClass.getResourceAsStream("/fxml/main.fxml")) as BorderPane val primaryScene = Scene(root, WINDOW_WIDTH, WINDOW_HEIGHT) +// primaryScene.stylesheets.add(javaClass.getResource("/css/dark.css")?.toExternalForm()!!) primaryStage.apply { title = WINDOW_TITLE diff --git a/src/main/resources/css/dark.css b/src/main/resources/css/dark.css index 5f916e6..440b71a 100644 --- a/src/main/resources/css/dark.css +++ b/src/main/resources/css/dark.css @@ -4,13 +4,19 @@ https://openjfx.io/javadoc/23/javafx.graphics/javafx/scene/doc-files/cssref.html */ .root { - willow-background: #2D2D30; - willow-foreground: #ffffff; + willow-background: #282828; + willow-foreground: #dfdfdf; + + -fx-base: willow-background; -fx-background-color: willow-background; - background-color: willow-background; + -fx-text-fill: willow-foreground; } +/*.split-pane { + -fx-background-color: willow-background; +}*/ + .label { -fx-text-fill: willow-foreground; } @@ -18,3 +24,13 @@ https://openjfx.io/javadoc/23/javafx.graphics/javafx/scene/doc-files/cssref.html .radio-button { -fx-text-fill: willow-foreground; } + +.list-cell:even { + -fx-text-fill: willow-foreground; + -fx-background-color: #1e1e1e; +} + +.list-cell:odd { + -fx-text-fill: willow-foreground; + -fx-background-color: #292929; +} diff --git a/src/main/resources/fxml/details.fxml b/src/main/resources/fxml/details.fxml index ceab00e..38efd3a 100644 --- a/src/main/resources/fxml/details.fxml +++ b/src/main/resources/fxml/details.fxml @@ -7,7 +7,7 @@ - diff --git a/src/main/resources/fxml/main.fxml b/src/main/resources/fxml/main.fxml index 2a66355..87ddf64 100644 --- a/src/main/resources/fxml/main.fxml +++ b/src/main/resources/fxml/main.fxml @@ -15,7 +15,7 @@ - +