Giter Site home page Giter Site logo

Comments (6)

Scighost avatar Scighost commented on July 28, 2024

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

from snap.hutao.

Mikachu2333 avatar Mikachu2333 commented on July 28, 2024

在输入框内使用等宽字体

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


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

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

from snap.hutao.

Scighost avatar Scighost commented on July 28, 2024

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

from snap.hutao.

GashByte avatar GashByte commented on July 28, 2024

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

from snap.hutao.

dgp-bot avatar dgp-bot commented on July 28, 2024

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

from snap.hutao.

github-actions avatar github-actions commented on July 28, 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.

from snap.hutao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.