Skip to content
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

[Bug]: 密码输入框在按下查看密码按钮时反复闪烁无法看清 #1485

Closed
4 tasks done
Mikachu2333 opened this issue Mar 15, 2024 · 6 comments · Fixed by #1574
Closed
4 tasks done

[Bug]: 密码输入框在按下查看密码按钮时反复闪烁无法看清 #1485

Mikachu2333 opened this issue Mar 15, 2024 · 6 comments · Fixed by #1574
Labels
area-Passport 通行证相关 area-UserInterface 用户界面 已完成 This issue is completed
Milestone

Comments

@Mikachu2333
Copy link
Collaborator

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

19045.4123

Snap Hutao 版本

1.9.8.0

设备 ID

No response

问题分类

胡桃帐号

发生了什么?

如视频所示,闪烁频繁

2024-03-15_22-47-48.mp4

你期望发生的行为?

不要闪烁……

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@Mikachu2333 Mikachu2333 added BUG priority:none Priority not set labels Mar 15, 2024
@dgp-bot dgp-bot bot added the area-Passport 通行证相关 label Mar 15, 2024
@Lightczx Lightczx added the area-UserInterface 用户界面 label Mar 16, 2024
@Scighost
Copy link
Contributor

建议修改占位符 PasswordChar,并在输入框内使用等宽字体。

@Mikachu2333
Copy link
Collaborator Author

在输入框内使用等宽字体

不知道胡桃在设置密码的时候是否允许中文等奇形怪状的UTF8,如果是的话可能需要严格1:2的中英字符吧……


这里有一个怪异的解决方案,把遮挡字符和输入的字母都显示为全角的字符……这样就和中文等宽了,无需强求等宽字体(

不过有点过于粗暴了,并且还需要自己重写一遍密码的显示逻辑……刚刚自己试着实现了半天直接放弃,看看有没有现成的轮子能用?

@Scighost
Copy link
Contributor

换个角度想,设置 dialog 的宽度为一个定值,让其免受输入框内字符多少的影响。

@Masterain98 Masterain98 added priority:medium User noticeable but effect is limited; new add-on feature request and removed priority:none Priority not set labels Mar 30, 2024
@GashByte
Copy link
Contributor

TextBox有MaxWidth,TextWrapping设置成NoWrap应该就可以了

@qhy040404 qhy040404 linked a pull request Apr 25, 2024 that will close this issue
1 task
@qhy040404 qhy040404 added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release and removed priority:medium User noticeable but effect is limited; new add-on feature request labels Apr 26, 2024
@dgp-bot dgp-bot bot added this to the 1.10.0 milestone Apr 30, 2024
@dgp-bot
Copy link

dgp-bot bot commented Apr 30, 2024

包含解决该问题的程序版本 1.10.0 已发布。

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Apr 30, 2024
@dgp-bot dgp-bot bot closed this as completed Apr 30, 2024
Copy link

github-actions bot commented Jun 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Passport 通行证相关 area-UserInterface 用户界面 已完成 This issue is completed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants