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

Some pictures in the Mac version show text with white edges. Can this be solved? #1490

Closed
yshumy opened this issue May 3, 2024 · 2 comments
Labels
question Not a bug.

Comments

@yshumy
Copy link

yshumy commented May 3, 2024

這樣,暗黑模式下:

截屏2024-05-02 14 32 23

這是原圖:

image

@github-actions github-actions bot changed the title Mac版有的圖片顯示文字有白邊,能不能解決? Some pictures in the Mac version show text with white edges. Can this be solved? May 3, 2024
@shenlebantongying
Copy link
Collaborator

shenlebantongying commented May 3, 2024

You can add these to article-style.css or dictionary's css file.

img {
  filter: grayscale(0.80) invert(0.94);
  background-color: transparent !important; 
  
or 

  background-color: white !important; 
}

This problem (Images with transparent or white background in dark mode) cannot be addressed generally.

The idea comes from here https://forum.freemdict.com/t/topic/11495/3060

image

@shenlebantongying shenlebantongying added the question Not a bug. label May 8, 2024
@shenlebantongying
Copy link
Collaborator

shenlebantongying commented May 8, 2024

Not actionable. Forcing background: white may incur other problems.

The filter trick or forcing a white background can be used per dictionary basis.

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

No branches or pull requests

2 participants