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

黑色 SVG 图像在暗色模式下看不清 #999

Open
alphagocc opened this issue Nov 3, 2021 · 3 comments
Open

黑色 SVG 图像在暗色模式下看不清 #999

alphagocc opened this issue Nov 3, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@alphagocc
Copy link

我想到的可能的解决办法

  • 反色
  • 增加白底
@CoelacanthusHex
Copy link
Member

CoelacanthusHex commented Jan 4, 2022

前者更现实点(因为白底在黑色背景下非常刺眼),我记得没错的话 SVG 会遵守 CSS,所以我们可以使用 CSS 的 invert 滤镜 https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/invert()

@CoelacanthusHex CoelacanthusHex added the bug Something isn't working label Jan 4, 2022
@CoelacanthusHex CoelacanthusHex changed the title 黑色Svg图像在暗色模式下看不清 黑色 SVG 图像在暗色模式下看不清 Jan 4, 2022
@CoelacanthusHex
Copy link
Member

Maybe #1016 workaround it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants