Skip to content

Feat: Added status label opacity when installer item is incompatible#6335

Open
KSSJW wants to merge 3 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:installer-item-skin-feat
Open

Feat: Added status label opacity when installer item is incompatible#6335
KSSJW wants to merge 3 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:installer-item-skin-feat

Conversation

@KSSJW

@KSSJW KSSJW commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

InstallerItemSkin的不兼容状态文体添加透明度状态

实况

暗色 亮色
1 3
2 4

@KSSJW

KSSJW commented Jul 8, 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 introduces a dynamic opacity change to the status label in InstallerItem.java when the state is incompatible. The reviewer recommended binding directly to opacityProperty() rather than using inline CSS via styleProperty(), which avoids runtime CSS parsing overhead and improves performance.

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/InstallerItem.java Outdated
@KSSJW

KSSJW commented Jul 8, 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 introduces a binding to statusLabel.opacityProperty() in InstallerItem.java to reduce the opacity to 0.6 when the state is an instance of IncompatibleState. The review feedback recommends using a JavaFX CSS PseudoClass instead of hardcoding the opacity value in Java code, which improves style-logic separation and maintainability.

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/InstallerItem.java Outdated
@KSSJW

KSSJW commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@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.

OK

@KSSJW KSSJW marked this pull request as ready for review July 8, 2026 04:34
@Glavo

Glavo commented Jul 8, 2026

Copy link
Copy Markdown
Member

@codex review

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