-
Notifications
You must be signed in to change notification settings - Fork 812
更新启动按钮分隔符颜色 #5087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更新启动按钮分隔符颜色 #5087
Conversation
|
我尝试了一下,在某些场景下,线会消失:
这些操作后,如果鼠标指针再次放回按钮上,线会恢复。 |
现在应该可以了 |
试了下,问题解决了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the launch button separator implementation from a StackPane with manual clipping to a cleaner HBox with CSS-controlled spacing. The separator color is now controlled through the HBox background color (-monet-on-surface-variant) that shows through the spacing gap.
Key Changes:
- Replaced
StackPanewithHBoxfor the launch pane container - Moved all sizing and positioning logic from Java code to CSS
- Removed the
Rectangleseparator element in favor of HBox spacing to create the visual separator
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
root.css |
Added comprehensive CSS rules for .launch-pane, .launch-button, and .menu-button classes, including sizing, spacing, and border radius properties; removed obsolete Rectangle styles |
MainPage.java |
Refactored launch pane from StackPane to HBox, removed manual sizing/positioning code, simplified menuButton graphic creation, and removed unused Rectangle import |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
本 PR 的修改让按钮的圆角稍微小了一点点。 |
|
更新启动按钮分隔符颜色
描述
原本启动按钮这里使用的是
StackPane配合裁切实现的,现在已改用HBox实现通过设置-fx-border-width实现分隔符效果,使用-fx-border-color控制分隔符颜色。预览