Render title in white at anytime (#2389)

This commit is contained in:
Burning_TNT
2024-01-13 11:27:10 +08:00
committed by GitHub
parent 45d9033252
commit 2116cfd789
2 changed files with 3 additions and 1 deletions

View File

@@ -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());

View File

@@ -553,7 +553,7 @@
}
.jfx-tool-bar.gray-background Label {
-fx-text-fill: BLACK;
/* -fx-text-fill: BLACK; */
}
.jfx-tool-bar .jfx-options-burger {