Merged
Conversation
Member
|
看起来不错 这个可以用来做 站点公告 Announcements 和 主页公告 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


目前 HMCL 使用 JavaFX WebView 渲染部分页面,这存在以下问题:
javafx.web和javafx.media模块占 27.4MiB,但 HMCL 只会在个别非常用场景中使用它们,这对于用户的流量和磁盘空间是一种浪费。javafx.web(比如 Linux ARM32 平台),HMCL 在这些平台上会与其他平台上表现不一致,这使得我们不得不付出额外的维护和测试成本来保证 HMCL 能在这些平台正常工作javafx.web模块所依赖的jdk.jsobject模块,对于高版本 JDK 我们不得不自己下载该模块,这使得未来 JavaFX 的补全逻辑会更加复杂。WebView的行为也过于复杂和不可控,我们难以让它与 HMCL 主界面保持良好的一致性本 PR 基于 Jsoup 实现了一个将 HTML 渲染为
TextFlow的简易渲染器,用其替代 HMCL 中WebView的所有用例,从而解决以上问题。