6
GitHub - antoniopelusi/JavaFX-Dark-Theme: A complete CSS stylesheet to set a dar...
source link: https://github.com/antoniopelusi/JavaFX-Dark-Theme
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JavaFX-Dark-Theme
A complete CSS stylesheet to set a dark theme in your JavaFX UI.
How to use
-
Load via FXML:
Add
stylesheets="@style.css"
to the top-level FXML tag.
- Load via Java:
Add the following code:
File style = new File("relative-path/style.css"); scene.getStylesheets().add(style.toURI().toURL().toExternalForm());
CSS preview example
See this theme in action here!
List of JavaFX recolored elements
- Label
- GridPane
- TextField
- ComboBox
- ListCell
- ListView
- Button
- CheckBox
- TextArea
- ScrollBar
- ProgressBar
- Slider
- TreeView
- TitledPane
- TableView
- Tooltip
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK