Skip to content

Commit

Permalink
修复使用 Java 8 构建失败的问题 (#3326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo authored Oct 13, 2024
1 parent d457985 commit a4f5e01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HMCL/src/main/java/org/jackhuang/hmcl/ui/WebPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.paint.Color;
import org.jackhuang.hmcl.task.Schedulers;
import org.jackhuang.hmcl.task.Task;
Expand All @@ -42,7 +43,7 @@ public final class WebPage extends SpinnerPane implements DecoratorPage {

public WebPage(String title, String content) {
this.stateProperty = new SimpleObjectProperty<>(DecoratorPage.State.fromTitle(title));
this.setBackground(Background.fill(Color.WHITE));
this.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));

Task.supplyAsync(() -> {
Document document = Jsoup.parseBodyFragment(content);
Expand Down

0 comments on commit a4f5e01

Please sign in to comment.