sobjornstad / AnkiLPCG

Addon for dae/anki for studying lyrics and poetry
https://ankilpcg.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
155 stars 22 forks source link

Make cloze color more readable in night mode #18

Closed sobjornstad closed 4 years ago

sobjornstad commented 4 years ago

Per user suggestion via email:

[W]ith night mode enabled, the answered card has a dark blue text which is barely visible, is there an option to change the colour?

We can add this to the styling section to make things look decent in both modes:

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

It should be safe to inject this even into existing note types on startup, as long as no existing .nightMode directives have been added to the note type.

Side note, it looks like the official cloze template is really hard to read too! Maybe we'll be one step ahead of core. :-)

sobjornstad commented 4 years ago

Better snippet:

.nightMode .cloze {
  filter: invert(85%);
}

There was an error in the previous one, and the webkit-specific property is not needed when the error is not present.