krassowski / Anki-Night-Mode

Enabling studying at night with Anki - without eye strain
https://ankiweb.net/shared/info/1496166067
GNU General Public License v3.0
72 stars 13 forks source link

Keep the original colors of the card #25

Closed gitzen0 closed 6 years ago

gitzen0 commented 7 years ago

While it's not much of an issue, my cards styling already uses dark colors and I would like to know if there is a way to prevent the add-on changing the colors only for the card body, while preserving its functionality for everything else. I guess I have to change something in the config but I'm just about to start learning Python, so I don't really know what to do. Thanks for the great add-on by the way!

krassowski commented 7 years ago

You could try to remove lines 187-190 from stylers.py file. Please let me know if it worked.

gitzen0 commented 7 years ago

Oh, I've noticed I'm using the 1.2.3 version of the add-on and newer versions are only supported by Anki 2.1.x. But I was curious and I installed Anki beta in a sandbox and checked your solution. Nothing really happens, the colors are still inverted. Never mind, I'll wait until other add-ons support the 2.1.x version and after that I'll try to find a solution. For now I'll use the add-on as it is.

krassowski commented 6 years ago

Implemented in 2.1.5; to achieve such effect, go to the menu "View >> Night Mode >> Choose what to style" and disable "Anki Web View" (and "Reviewer" if you need to disable more styles).