Render title in white at anytime (#2389)
This commit is contained in:
@@ -141,6 +141,8 @@ public class DecoratorSkin extends SkinBase<Decorator> {
|
||||
titleContainer.setPickOnBounds(false);
|
||||
titleContainer.getStyleClass().addAll("jfx-tool-bar");
|
||||
|
||||
// Maybe, we can automatically identify whether the top part of the picture is light-coloured or dark when the title is transparent,
|
||||
// and decide whether the whole top bar should be rendered in white or black. TODO
|
||||
FXUtils.onChangeAndOperate(skinnable.titleTransparentProperty(), titleTransparent -> {
|
||||
if (titleTransparent) {
|
||||
wrapper.backgroundProperty().bind(skinnable.contentBackgroundProperty());
|
||||
|
||||
@@ -553,7 +553,7 @@
|
||||
}
|
||||
|
||||
.jfx-tool-bar.gray-background Label {
|
||||
-fx-text-fill: BLACK;
|
||||
/* -fx-text-fill: BLACK; */
|
||||
}
|
||||
|
||||
.jfx-tool-bar .jfx-options-burger {
|
||||
|
||||
Reference in New Issue
Block a user