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

[Promote] 替换 SweetAlert 显示提示信息 #62

Open
xihale opened this issue Feb 10, 2024 · 2 comments
Open

[Promote] 替换 SweetAlert 显示提示信息 #62

xihale opened this issue Feb 10, 2024 · 2 comments

Comments

@xihale
Copy link
Contributor

xihale commented Feb 10, 2024

Why

  1. 有关 二维码识别 子项的建议 #59 中的显示可以看出使用 Swal 会产生 css 割裂(如果需要适配需要耗费额外的工作!不值得!)
  2. 仅仅使用了 3 次, 却要额外引入一个库, 有点浪费
  3. 设计上的割裂感, 无法适配 qq 在使用的 Theme

How

直接使用 electron 的 API (dialog.showMessageBox, BrowserWindow)

Note

对于 BrowserWindow, 我正在尝试设计一套简约的流程, 尽量做到仅仅是 dialog.showMessageBox 的超集而不引入过多资源(引入越少, 出虫子的洞就越少)

@Night-stars-1
Copy link
Owner

Night-stars-1 commented Feb 10, 2024

目前不打算用electron的dialog,因为这个弹窗太丑了,后面会自己写一个简单的弹窗,或者在图片下面添加链接
这个项目在开发的时候没想过会加入这么多功能,所以没有有个规范项目,年后会推进更改的

@xihale
Copy link
Contributor Author

xihale commented Feb 10, 2024

我觉得显示效果其实还好, 至少比原来的好(其实用系统原生的就可以把很多繁琐的工作留给系统帮忙做了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants