Reversed colour scheme in dark mode broke after update

In regular reversed card I use for language learning I often have a sample sentence/paragraph with a usage example for the word on that card. I then highlight that word in red.

I recently upgraded my Ankidroid from a two year old version to the current version. In my old version, when I had highlighted something in red, when I used night mode/a dark colour scheme, the highlight changed to turquoise, which was very readable. However, in the current version the highlighted text remains (dark) red which is difficult to read when using dark mode.

How can I make the current version of Anki to behave like old versions, and change the highlighted colour when switching to dark mode?

Thank you.

.nightMode {
  filter: invert(100%);
}

This will invert the entire card minus the background. Though, I suggest simply changing the highlight color (assuming it’s done using html/css).

A better option for dark-mode is:

.nightMode {
  filter: invert(100%) hue-rotate(180%);
}

This inverts black/white but keeps every other colour intact.

For OP’s purposes, we can change the text colour to something else and then use hue-rotate such that the texts colour returns to white and the red highlight becomes a more comfortable colour.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.