Default JavaFX-CSS

后端 未结 5 1316
攒了一身酷
攒了一身酷 2021-02-07 07:55

Is there any way to see the applied CSS-Rules for JavaFX-Elements? Or there is a published reference with the default CSS-Rules available?

I would like, for example , to

5条回答
  •  感情败类
    2021-02-07 08:39

    From Skinning JavaFX Applications with CSS: Default Style Sheet,

    The default style sheet for JavaFX applications is caspian.css, which is found in the JavaFX runtime JAR file, jfxrt.jar

    and

    Use the following command to extract the style sheet from the JAR file:

    jar -xf jfxrt.jar com/sun/javafx/scene/control/skin/caspian/caspian.css

    and then just use a css viewer.

提交回复
热议问题