Continue WIP work on darkmode
This commit is contained in:
parent
46af4db9f1
commit
d473eafe35
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<VBox xmlns="http://javafx.com/javafx/23" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="com.marvinelsen.willow.ui.controllers.DetailsController"
|
||||
stylesheets="/css/details.css">
|
||||
<FlowPane fx:id="flowPaneHeader" hgap="8.0" onContextMenuRequested="#headerOnContextMenuRequested"
|
||||
<FlowPane fx:id="flowPaneHeader" styleClass="flow-pane-header" hgap="8.0" onContextMenuRequested="#headerOnContextMenuRequested"
|
||||
prefHeight="38.0" prefWidth="412.0" rowValignment="BASELINE" vgap="8.0" VBox.vgrow="NEVER">
|
||||
<padding>
|
||||
<Insets bottom="6.0" left="6.0" right="6.0" top="6.0"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
|
||||
</BorderPane.margin>
|
||||
<fx:include source="/fxml/search.fxml"/>
|
||||
<SplitPane dividerPositions="0.33" VBox.vgrow="ALWAYS">
|
||||
<SplitPane styleClass="split-pane" dividerPositions="0.33" VBox.vgrow="ALWAYS">
|
||||
<fx:include source="/fxml/search-results.fxml"/>
|
||||
<fx:include source="/fxml/details.fxml"/>
|
||||
</SplitPane>
|
||||
|
Loading…
Reference in New Issue
Block a user