-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with Night Mode #8
Comments
Hi PopCorne. Your English is fine, so no worries! By default, Syntax Highlighting will use inline HTML style elements to apply its coloring. These do not support different styling depending on other factors such as whether Night Mode is active or not. And since users usually switch between NM on and off, I can't implement a switch that would simply hard-code the line color depending on which was active at code generation time. However, you might have some success with using the CSS mode of the add-on instead and adding some custom classes that apply only when Night Mode is active. Please see Night Mode's README on how to do that: https://github.com/krassowski/Anki-Night-Mode#custom-css-in-night-mode Hope that helps! |
With the "Use CSS classes" option active, styling is governed by your card templates. So you will have to copy and paste the pertinent CSS snippets into the styling section of your Anki card templates: https://www.youtube.com/watch?v=F1j1Zx0mXME So to apply the default css linked before, for instance, you would copy the entire code block and paste it into the Styling section. If you look towards the top, the default css already comes with a night mode rule. I'm not sure how well it works, however, as I don't use Night Mode myself. |
I definitely don't understand all of this... So is it possible, in the Python code of the add-on at ~/.local/share/Anki2/addons21/1612375712, to modify the code so that it doesn't make anymore highlighting on the numbering? Can you help me do that? |
Hello,
I'm a complete beginner in code and I'm going to learn it using Anki. I like dark themes.
So, I installed the addon Night Mode and I chose the monokai theme in Syntax Highlighting for Code.
One point that is very cool is that the color of the code remains the same on the web app..
The point is that the numeration is in white, and it doesn't look great on my screen, here's a screenshot (the code is not mine ^^):
... but I still want the numbering.
Is it possible to disable the background color of the numbering lines?
Thanks in advance.
NB: I'm French so it's possible that they may be spelling mistakes or non-sense in my text.
The text was updated successfully, but these errors were encountered: