[Bugfix] 修复右上角按钮和对话框图层相对位置错误的问题 - #6194
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces support for a custom overlay pane in JFXDialog, allowing dialogs to be rendered on a separate overlay container. The feedback highlights critical areas for improvement, including adding null checks to the overlayPaneProperty listener to prevent NullPointerExceptions, ensuring that the dialog content and overlay pane are properly made visible when showing a dialog without animations, and defaulting the overlay pane to the dialog itself if set to null to avoid errors elsewhere in the class.
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.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces support for a custom overlay pane in JFXDialog. It adds a new constructor accepting an overlayPane and updates visibility, opacity, and transition animations to target the contentHolder and the custom overlayPane instead of the dialog itself. Decorator and DecoratorSkin are updated to manage this overlay pane, and DialogUtils is adjusted to pass it during dialog creation. Feedback on these changes suggests adding defensive null checks in the overlayPaneProperty listener of JFXDialog to prevent potential NullPointerExceptions, and directly utilizing the new 5-parameter constructor in DialogUtils to avoid redundant layout configurations.
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.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces support for custom overlay panes in JFXDialog by adding an overlayPane property and updating the dialog display and animation logic to target the overlay pane and content holder separately. It also updates DialogUtils and Decorator to support this new overlay pane. The review feedback suggests removing commented-out dead code in JFXDialog.java and restoring a removed show method overload in DialogUtils.java to prevent breaking backward compatibility.
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.
|
CC @Glavo can merge |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a customizable overlayPane property to JFXDialog, allowing the dialog to use a separate overlay pane instead of itself, and updates DialogUtils and the window decorator to support this. However, the feedback highlights that removing visibility controls from JFXDialog itself breaks its lifecycle and state tracking. It is recommended to restore the visibility updates on JFXDialog during initialization, showing, closing, and resetting properties to ensure proper behavior.
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.
|
算了 不发/gemini review了(详见公测群) |
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/DialogUtils.java # HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java # HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java
|
Update: 事实上那两个 issue 已经解决,现在的问题是打开对话框后无法点击右上角的三个按钮 & macOS 上打开对话框后无法用 cmd+Q 快捷键退出,导致 macOS 上如果在对话框内部卡死就只能强制退出。 本 pr 现在解决的问题是上述两个问题中的前者。 |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f8d3dbbb2
ℹ️ 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".
现在对话框在右上角三个按钮之上,而阴影背景在三个按钮之下,所以遮挡关系是正确的且能正常点击按钮
Fixes #5796 Fixes #5122