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

diff 代码的高亮显示方式从背景高亮切换为文本高亮 #389

Open
3 tasks done
markyangcc opened this issue Jan 25, 2025 · 1 comment
Open
3 tasks done

Comments

@markyangcc
Copy link

Issue Checklist | Issue 检查清单

Feature Request | 功能需求

当前的 diff 代码高亮方式是通过高亮修改行的背景色来实现的,但当修改行较多时,这种方式可能会对代码的阅读造成一定视觉干扰。为了解决这个问题,我建议将高亮方案调整为直接高亮修改行的文本颜色, 这样不仅可以有效区分修改内容,还能让整体视觉效果更加柔和。

我已经进行了一些尝试,并对比了修改前后的效果。经过观察,新方案看起来更加直观和舒适。

因此,我提交了一个 issue,和大家一起讨论是否修改目前的 diff 高亮方案

修改后的效果图(基于文字高亮)
Image

修改前的效果图(基于背景色高亮)
Image

Other Information | 其它信息

No response

@markyangcc
Copy link
Author

简单的修改方案 #390

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

No branches or pull requests

1 participant