This plugin adds a functionality of night mode, similar to the one implemented in AnkiDroid app.
Recent versions of Anki (2.1.20+) introduced built-in Night Mode support. While it does not have all the features that this add-on offered, it causes fewer conflicts and does not require a never-ending maintenance burden due to the limited add-ons API and breaking changes in the interfaces. You are advised to upgrade Anki and use the built-in night mode instead of this add-on; please report any missing features to the Anki authors.
To prevent user confusion this repository has been archived but you are welcome to install the old versions as legacy support, or to contact the author (who still uses Anki) if you wish to port this add-on to a newer version (see this issue).
It was fun 5 years; many thanks to all contributors listed here and there and to all of you: friendly users who encouraged developement and maintenance.
It adds a "view" menu entity with options like:
It provides shortcut ctrl+n to quickly switch mode and color picker to adjust some of color parameters.
After enabling the night mode, the add-on changes colors of menubar, toolbar, bottombars and content windows. Take a look at a screenshot at the bottom of this page to see an example.
The add-on supports Anki in 2.1 version. While there is an older version of the add-on written for Anki 2.0, it is no longer supported as Anki 2.0 uses well oudated and unsecure technology which lead to a large number of difficult do diagnose issues.
You can download this add-on from within the Anki app.
From menu select: Tools >> Add-ons >> Browse && Install...
and type the following code:
1496166067
after clicking ok
the add-on will be downloaded and installed. You neeed to restart Anki to enable changes.
To switch into the night mode you can use ctrl+n shortcut, or use one of the new options in the menu: View >> Night Mode >> ...
.
For the most recent updates and additions you may want to install a newer version of this addon manually. Follow this steps:
night_mode
directory from GitHubTools >> Add-ons >> Open Add-ons Folder...
to open add-ons directoryPlease, leave any feedback on Anki webpage or let me know of any issues here, on GitHub.
The Mac OS users might experience an issue with the tags colors in the edit window. There are couple of workarounds proposed for this, one of which is disabling the edit widow styling and another (proposed here) depends on a new functionality of Mojave system:
defaults write net.ankiweb.dtop NSRequiresAquaSystemAppearance -bool no
The application (including title bar) should be styled dark now and the tags box contrast problem should be resolved. Please let us know if it worked for you here.
Feel free to contribute, send bug reports or feature requests :)
If you can help translate the add-on to your language, please join us at POEditor.
You may use night_mode
class, to overwrite some of the CSS rules; sometimes usage of important!
directive or catch-all selector (*
) will be needed to enforce you own styling. Examples:
.night_mode * {
color: red;
}
.night_mode.card {
background: red !important;
}
given the HTML of your card:
<div>Normal text <span style="background-color: rgb(240, 244, 198);">highlighted text</span></div>
.night_mode span[style="background-color: rgb(240, 244, 198);"] {
background-color: red!important;
}
.night_mode .cloze {
color: red!important;
}
Add-ons which are known to work well with the night mode:
If you add-on works well Night Mode, please feel free to add your add-on on to the list above by editing this file (proposing a change)!