-
Notifications
You must be signed in to change notification settings - Fork 802
修改AccountAdvancedListItem 控件, 在 RootPage 中添加快速选择账户 #4932
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
base: main
Are you sure you want to change the base?
Conversation
zimzaza4
commented
Dec 6, 2025
在右键账户按钮的时候,可以打开一个菜单,能够快速预览并选择账户
HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountMenuItem.java
Outdated
Show resolved
Hide resolved
|
我觉得可以在 tooltip 上添加相关提示以提醒有相关功能? |
|
这个功能确实有用,但我一直没想好怎么做 UI 比较合适,这样一个孤立的弹出菜单看着太奇怪了。 单纯为了快速选择账户的话,可以把鼠标放到这个按钮上然后用滚轮切换。 |
滚轮切换对绝大部分用户操作起来有些奇怪。我认为可以同时提供弹出菜单类型和滚轮切换,与右下角【启动游戏】按钮的表现保持一致。 |
|
我感觉弹在这个按钮的右侧是比较符合逻辑的,但这个右箭头感觉挺丑的。 建议先把这个箭头删了,未来再研究怎么给用户提供指引。 |
| import static org.jackhuang.hmcl.setting.Accounts.getAccountFactory; | ||
| import static org.jackhuang.hmcl.setting.Accounts.getLocalizedLoginTypeName; | ||
|
|
||
| public class AccountMenuItem extends AdvancedListItem { |
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.
你可以考虑给 AccountAdvancedListItem 引入一个新的构造器,而不是复制一遍 AccountAdvancedListItem。
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.
这样行嘛


