Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

The .card class doesn't change in Anki Desktop (other classes - do!) #91

Open
4 of 5 tasks
ogassav opened this issue Dec 25, 2019 · 2 comments
Open
4 of 5 tasks

Comments

@ogassav
Copy link

ogassav commented Dec 25, 2019

Problem description

The .night_mode .myclassname format works in both - Anki Desktop and AnkiDroid, EXCEPT for the .card class. So i was unable to change for example the card's background color in the Night Mode.

Standalone .card class (responsible for card's global properties in a Day Mode) works perfectly fine in both - Anki Desktop and AnkiDroid. Looks like the issue is in pairing .night_mode and .card classes.

The .card class Night Mode problem was solved for AnkiDroid using .card.night_mode format proposed here.

However the Anki Desktop problem is still not solved. Am i doing smth wrong?

Thank you!

Checklist

Please put x inside brackets if following sentences apply to you:

  • I verified that I use the lastest add-on version,
  • I verified that I use the lastest Anki version,
  • I tried to disable other add-ons to find the culprit,
  • I checked if anyone reported this problem before, as well as Known issues section on add-ons page,
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version: 2.1.15 (442df9d6)
Qt: 5.9.7 PyQt 5.9

Please got to Night Mode → About now and copy-paste the first line from the pop-up window below:

Night Mode 2.2.4

Please fill in your OS details (Linux/Mac/Windows):

OS: Windows 10 LTSC x86 build 1809

If you have a compatibility problem with a specific add-on or add-ons, please paste the add-on page links below:

Backtrace (if any)

If you had an error which resulted in producing exception with a backtrace, please paste the backtrace below:

[paste your backtrace in here if you got any; otherwise feel free to remove this part]
@twwn
Copy link

twwn commented Dec 30, 2019

Noticed that as well. I forgot about reporting it since it can be worked around by declaring the colors in .card.night_mode as !important.

@ogassav
Copy link
Author

ogassav commented Dec 30, 2019

Noticed that as well. I forgot about reporting it since it can be worked around by declaring the colors in .card.night_mode as !important.

.card.night_mode or .night_mode .card ? Cause the latter is the format documented by the author.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants