diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java index 058dccd5dd..2e307dea61 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java @@ -141,6 +141,8 @@ public DecoratorSkin(Decorator control) { 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()); diff --git a/HMCL/src/main/resources/assets/css/root.css b/HMCL/src/main/resources/assets/css/root.css index aea759d2a9..36c589bbe3 100644 --- a/HMCL/src/main/resources/assets/css/root.css +++ b/HMCL/src/main/resources/assets/css/root.css @@ -553,7 +553,7 @@ } .jfx-tool-bar.gray-background Label { - -fx-text-fill: BLACK; + /* -fx-text-fill: BLACK; */ } .jfx-tool-bar .jfx-options-burger {