Skip to content

Commit

Permalink
Fix 'Images in UserData become black-and-white and color inverted whe…
Browse files Browse the repository at this point in the history
…n using dark mode'
  • Loading branch information
mjuhanne committed Sep 3, 2023
1 parent f301228 commit 5359236
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions addon/web/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,13 @@ body.dark {
color: #fff;
}

body.ankidroid_dark_mode img,
body.nightMode img,
body.dark img {

body.ankidroid_dark_mode .character-and-examples__character img,
body.nightMode .character-and-examples__character img,
body.dark .character-and-examples__character img,
body.ankidroid_dark_mode .font-examples__character img,
body.nightMode .font-examples__character img,
body.dark .font-examples__character img {
filter: invert(99%) sepia(50%) saturate(2%) hue-rotate(181deg) brightness(114%) contrast(101%);
}

Expand Down

0 comments on commit 5359236

Please sign in to comment.