JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

setTitleBarStyleClass does not work for me #22

Closed dwaddell closed 8 years ago

dwaddell commented 9 years ago

When using setTitleBarStyleClass to "custom-window-titlebar" I will get "custom-window-titlebar" returned through getTitleBarStyleClass however the values I set in the class "custom-window-titlebar" are not being applied. There is a real possibility that I am doing something incorrectly however I am having trouble finding examples using this online.

Window wTest = new Window("Insert title here!"); wTest.setTitleBarStyleClass("custom-window-titlebar"); apAnchor.getChildren().add(wTest );

/* Trying to make things different, red */ .custom-window-titlebar { -fx-glass-color: rgba(255, 0, 0, 0.4); -fx-alignment: center; -fx-background-color: linear-gradient(to bottom, derive(-fx-glass-color, 30%), -fx-glass-color); -fx-border-color: derive(-fx-glass-color, -60%); -fx-border-width: 2; -fx-background-insets: 1; -fx-border-radius: 3; -fx-background-radius: 3; -fx-stroke: rgba(255,0,0,50); -fx-fill: rgba(255,0,0,50); }

Thanks, Drew

miho commented 9 years ago

Which version do you use? Are you sure that you apply the CSS file?

tbee commented 8 years ago

Closed because of inactivity