Anki-Night-Mode icon indicating copy to clipboard operation
Anki-Night-Mode copied to clipboard

No Image Inversion

Open gr4nny opened this issue 8 years ago • 11 comments

OSX 10.11.2 Anki Version 2.0.33 Qt 4.8.2 PyQt 4.9.4

anki - james-1

Also, I have css specifying text as Navy. On the android night mode it automatically reformat this to some shade of yellow. It seems that your plugin only overrides the default text color.

Great plugin. Thanks for doing this.

gr4nny avatar Jan 18 '16 20:01 gr4nny

Hi,

  1. Do you have "Invert images" enabled in menu? (View → Night Mode → Invert Images)
  2. Yes, currently there is no full colour inversion of texts as it is implemented in AnkiDroid.

krassowski avatar Jan 18 '16 20:01 krassowski

Yes. This is occurring with local images and linked images (src="http://...).

I just edited the cards and changed it to gray, so it was no big deal.

gr4nny avatar Jan 18 '16 20:01 gr4nny

Also, when I am in full screen mode, edit a card > save change I get a blank, dark screen. If I alt-tab twice it redisplays correctly. Again, no big deal, just an FYI. -edit- this actually seems to happen even with night mode turned off. Might not be your bug...

gr4nny avatar Jan 18 '16 20:01 gr4nny

Ok, so last from basic questions: Do you have the last version of add-on (1.1.2) installed?

If updating add-on doesn't help, I would recommend you to update Qt to 4.8.6 version (if it's possible). I don't know what exactly causes the bug (at least currently) but it might be connected with qt webkit version, which was updated in last minor releases of 4.8 branch.

I will investigate further after my finals, now I'm too busy.

krassowski avatar Jan 18 '16 20:01 krassowski

I have 1.1.2. I do not know how to update Qt separately. I will have to look into that. Good skill on your finals. No worries and thanks for your work.

gr4nny avatar Jan 18 '16 21:01 gr4nny

Same problem here with the same version numbers. I played around with the css in the card directly and using "filter" does not work, so it does seem to be some webkit problem. My python interpreter gives different versions for qt and pyqt than anki does.

from PyQt4.QtCore import * QT_VERSION_STR '4.8.7' PYQT_VERSION_STR '4.11.4'

altre avatar Feb 01 '16 11:02 altre

Ok, finally I'm able to replicate this bug (on Windows). Here Qt and PyQt versions are independent of those installed in the system, since Anki provides own copies of *pyqt dlls. These dlls were last time modified in 2013, so it is the next premise, that they are just obsolete, and (probably) old version of webkit ignores 'filter' property. I tried to replace them in-situ with the most recent versions, but this doesn't work so easy - Anki stops starting after that. Maybe compiling Anki with newer PyQt will solve the problem.

krassowski avatar Feb 01 '16 13:02 krassowski

Mh, just cloned anki and ran it with ./tools/build_ui.sh and ./runanki. Now it uses the newer qt versions: Version 2.0.33 Qt 4.8.7 PyQt 4.11.4 But the problem remains.

altre avatar Feb 01 '16 14:02 altre

On Windows or other OS?

krassowski avatar Feb 01 '16 14:02 krassowski

Sorry, same as gr4nny: OSX 10.11.2

altre avatar Feb 01 '16 15:02 altre

@gr4nny @altre do you still use Anki? Could you test the addon in the Anki 2.1 beta 16?

krassowski avatar Sep 19 '17 13:09 krassowski