2013-01-02 8 views

답변

18

caspian.css (자바 FX 2) 또는 modena.css (자바 FX 8)

.root { 
    /* A bright blue for highlighting/accenting objects. For example: selected 
    * text; selected items in menus, lists, trees, and tables; progress bars; 
    * default buttons. 
    */ 
    -fx-accent: #0093ff; 

    /* A bright blue for the focus indicator of objects. Typically used as the 
    * first color in -fx-background-color for the "focused" pseudo-class. Also 
    * typically used with insets of -1.4 to provide a glowing effect. 
    * 
    * TODO: should this be derived from -fx-accent? 
    */ 
    -fx-focus-color: #0093ff; 
} 

변경에서 자신의 용도에 따라 이러한 색상.

+0

대단히 감사합니다! 그리고 ListViews의 hover-background를 수동으로 변경해야합니까? 또는 -fx-accent와 같이 전역으로 변경하는 방법이 있습니까? – stetro

+2

ListView hover color는 다음과 같습니다 :'-fx-cell-hover-color' - [caspian.css - 2.2 버전 링크입니다] (http://hg.openjdk.java.net/ javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css) – jewelsea

관련 문제