Skip to content

Refactor: Style of JavaManagementPage#6345

Open
KSSJW wants to merge 2 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:java-management-page-refactor
Open

Refactor: Style of JavaManagementPage#6345
KSSJW wants to merge 2 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:java-management-page-refactor

Conversation

@KSSJW

@KSSJW KSSJW commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

调整了JavaManagementPage样式

实况

更改前 更改后
1 2

@KSSJW

KSSJW commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Java Management Page UI by increasing the label size and font size for Java runtime items, and refactoring how the Java vendor and architecture information are displayed. Specifically, the vendor name is now shown in the title instead of as a tag, and the architecture tag is simplified. The reviewer noted that the hardcoded "Unknown" string used when the vendor is null violates internationalization (i18n) guidelines and suggested using a localized string instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/main/JavaManagementPage.java Outdated

@KSSJW KSSJW left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议与紧随其后的JDKJRE统一使用英语还是增加unknown国际化支持?

... + (item.isJDK() ? "JDK" : "JRE") +  ...

@KSSJW KSSJW marked this pull request as ready for review July 9, 2026 03:37
@3gf8jv4dv

Copy link
Copy Markdown
Contributor

感觉能加就加吧。

@KSSJW

KSSJW commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

感觉能加就加吧。

建议使用message.unknown吗?还是新建一个?

@3gf8jv4dv

Copy link
Copy Markdown
Contributor

建议使用message.unknown吗?还是新建一个?

先用现有的吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants