Skip to content

zxhprogram/DashboardFx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Version License

This project is part of the set of custom components created for JavaFx.

DashboardFx

This dashboard is a collection of the samples for javafx creators.

Find templates, themes, controls, custom uis.

Library Dependency

find the dependencies in the lib folder.

How to use css scheme

In the scene

getScene().getStylesheets().addAll(
    getClass().getResource("/com/gn/theme/css/fonts.css").toExternalForm(), // 1 
    getClass().getResource("/com/gn/theme/css/material-color.css").toExternalForm(), // 2
    getClass().getResource("/com/gn/theme/css/skeleton.css").toExternalForm(), // 3
    getClass().getResource("/com/gn/theme/css/light.css").toExternalForm(), // 4
    getClass().getResource("/com/gn/theme/css/bootstrap.css").toExternalForm(), // 5
    getClass().getResource("/com/gn/theme/css/simple-info.css").toExternalForm(), // 6
    getClass().getResource("/com/gn/theme/css/shape.css").toExternalForm(), // 7
    getClass().getResource("/com/gn/theme/css/typographic.css").toExternalForm(), // 8
    getClass().getResource("/com/gn/theme/css/helpers.css").toExternalForm(), // 9 
    getClass().getResource("/com/gn/theme/css/master.css").toExternalForm() // 10
);
  • 1 Load fonts to use in a system that not have this font.
  • 2 Contain a multiples colors used in all CSS system.
  • 3 This CSS override the default theme (Modena), return the max possible for 0% stylized.
    • This technic is used in web development as reset css.
  • 4 Define the lighting theme
    • For dark theme getClass().getResource("/com/gn/theme/css/dark.css").toExternalForm(),
  • 5 Contains util classes.
    • Ex. btn-default, btn-danger..
  • 6 Define the system color used.
    • Ex. The base color used to button is -base.. override color in root.. (.root {-base : blue;}
    • Result in all buttons with color blue;
    • For most details consult wiki page.
  • 7 Used to define a system of typographic.
  • 8 Used to configure shapes for nodes.
    • rectangle, polygon, circles...
  • 9 Additional css for add effects and others.
  • 10 For you replace.

Direct FXml

Don't load the font files direct in the fxml.. can cause instability at the SceneBuilder. The fonts not installed in your system... SceneBuilder does not support load of external fonts. To view fonts in your SceneBuilder, the install fonts in your system.

 <stylesheets>
  <URL value="@../../theme/css/material-color.css" />
  <URL value="@../../theme/css/skeleton.css" />
  <URL value="@../../theme/css/light.css" />
  <URL value="@../../theme/css/bootstrap.css" />
  <URL value="@../../theme/css/simple-info.css" />
  <URL value="@../../theme/css/shape.css" />
  <URL value="@../../theme/css/typographic.css" />
  <URL value="@../../theme/css/helpers.css" />
  <URL value="@../../theme/css/master.css" />
  </stylesheets>

Dashboard

Guide

Youtube view

Youtube link

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.4%
  • CSS 33.6%