Skip to content

Feat: Implement dynamic folder icon and use to game directory list#6435

Open
KSSJW wants to merge 5 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:game-directory-list-item-icon
Open

Feat: Implement dynamic folder icon and use to game directory list#6435
KSSJW wants to merge 5 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:game-directory-list-item-icon

Conversation

@KSSJW

@KSSJW KSSJW commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

添加 FOLDER_FILL 图标并且应用于游戏文件夹

实况

_20260719_144329.mp4

@github-actions github-actions Bot added the 10+ label Jul 19, 2026

@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 new filled folder icon (FOLDER_FILL) and updates GameDirectoryListItemSkin to dynamically switch between the standard and filled folder icons based on the item's selection state. Feedback suggests optimizing this state change by checking if the icon has actually changed before calling left.setIcon, which prevents redundant cross-fade animations and saves CPU/GPU resources.

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.

@KSSJW

KSSJW commented Jul 19, 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 filled folder icon (FOLDER_FILL) and updates the GameDirectoryListItemSkin to dynamically switch between the outline and filled folder icons based on the selection state of the directory item, using a short transition animation. The review feedback suggests initializing the icon based on the initial selection state of the directory item to prevent an unnecessary transition animation during the initial UI rendering.

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/directory/GameDirectoryListItemSkin.java Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@KSSJW

KSSJW commented Jul 19, 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 new filled folder icon (FOLDER_FILL) and updates the game directory list item skin (GameDirectoryListItemSkin) to dynamically transition between the outline and filled folder icons based on the selection state. The reviewer suggested using skinnable.isSelected() instead of skinnable.selectedProperty().get() to align with JavaFX conventions and improve readability.

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/directory/GameDirectoryListItemSkin.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.

Reviewed

@KSSJW
KSSJW marked this pull request as ready for review July 19, 2026 07:09
@Minecraft269

Copy link
Copy Markdown

en? gemini不应该是停止这个审查代码的服务了吗? 怎么还能用?

@KSSJW

KSSJW commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

en? gemini不应该是停止这个审查代码的服务了吗? 怎么还能用?

不知道(

@Glavo

Glavo commented Jul 19, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: c92adbf7f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants