All Projects → krassowski → Anki-Night-Mode

krassowski / Anki-Night-Mode

Licence: GPL-3.0 license
Enabling studying at night with Anki - without eye strain

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Anki-Night-Mode

ankidown
Ankidown - a flexible document importer for Anki
Stars: ✭ 37 (-48.61%)
Mutual labels:  anki, anki-addon, anki21
kanjigrid
Fork of the Kanji Grid addon for Anki
Stars: ✭ 21 (-70.83%)
Mutual labels:  addon, anki, anki-addon
Anki Templates
For language Grammar
Stars: ✭ 70 (-2.78%)
Mutual labels:  anki, anki-theme
AutoDefine
An add-on to Anki that auto-defines words, optionally adding pronunciation and images.
Stars: ✭ 36 (-50%)
Mutual labels:  anki-addon, anki21
Yomichan
Japanese pop-up dictionary extension for Chrome and Firefox.
Stars: ✭ 464 (+544.44%)
Mutual labels:  addon, anki
Incremental Reading
Anki add-on providing incremental reading features
Stars: ✭ 164 (+127.78%)
Mutual labels:  addon, anki
chinese-support-redux
Anki add-on providing support for Chinese study
Stars: ✭ 88 (+22.22%)
Mutual labels:  addon, anki
mini-format-pack
Extends Anki 2.1 with a number of additional text formatting buttons
Stars: ✭ 43 (-40.28%)
Mutual labels:  anki-addon, anki21
popup-dictionary
Pop-up Dictionary Add-on for Anki
Stars: ✭ 67 (-6.94%)
Mutual labels:  anki, anki-addon
frozen-fields
A fork of Tiago Barroso's Frozen Fields add-on with support for Anki 2.1
Stars: ✭ 22 (-69.44%)
Mutual labels:  anki, anki-addon
speed-focus-mode
Speed Focus Mode add-on for Anki
Stars: ✭ 19 (-73.61%)
Mutual labels:  anki, anki-addon
blender-addon-for-trackmania-and-maniaplanet
Blender addon for trackmania2020 & maniaplanet. 1 Click export & convert to .gbx.
Stars: ✭ 18 (-75%)
Mutual labels:  addon
mtpThemeManager
An iOS theme manager with all the features. Everything you expect from a theme manager, contains apply theme to whole app, multiple themes, night mode, styles , ...
Stars: ✭ 13 (-81.94%)
Mutual labels:  night-mode
yet-another-pinboard-extension
Manage your Pinboard bookmarks in your browser.
Stars: ✭ 27 (-62.5%)
Mutual labels:  addon
repo-scrapers
Official source repository for Kodi scraper add-ons
Stars: ✭ 27 (-62.5%)
Mutual labels:  addon
SubServers-2
SubServers – The Minecraft Server Management Platform
Stars: ✭ 80 (+11.11%)
Mutual labels:  addon
tsaotun
Tsaotun - Python based Assistance for Docker
Stars: ✭ 51 (-29.17%)
Mutual labels:  addon
anki-apkg
Create .apkg file for Anki
Stars: ✭ 25 (-65.28%)
Mutual labels:  anki
kian
Alternative desktop frontend for Anki2
Stars: ✭ 33 (-54.17%)
Mutual labels:  anki
VSE Transform Tools
Quickly transform, crop and fade video strips in Blender's Video Sequence Editor
Stars: ✭ 195 (+170.83%)
Mutual labels:  addon

Anki-Night-Mode

Build Status Code Climate

This plugin adds a functionality of night mode, similar to the one implemented in AnkiDroid app.

Archiving note

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.

How it works?

It adds a "view" menu entity with options like:

  • Automatic (i.e. at specified time) or manual switching of the night mode
  • Inverting colors of images or latex formulas
  • Defining custom color substitution rules

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.

Compatibility

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.

How can I get it?

Automatic install

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 >> ....

Manual installation

For the most recent updates and additions you may want to install a newer version of this addon manually. Follow this steps:

  1. Get the newest version of night_mode directory from GitHub
  2. Run Anki, from menu select Tools >> Add-ons >> Open Add-ons Folder... to open add-ons directory
  3. Copy downloaded directory into the directory opened in the previous step
  4. Restart Anki and enjoy the latest features!

After installation

Please, leave any feedback on Anki webpage or let me know of any issues here, on GitHub.

Preview

Preview

Tags color in the edit window

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:

  • close Anki
  • paste the following command in the Terminal:
defaults write net.ankiweb.dtop NSRequiresAquaSystemAppearance -bool no
  • restart Anki

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.

For developers & translators

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.

Custom CSS in night mode

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:

Change color of every piece of text:

.night_mode * {
    color: red;
}

Change card background

.night_mode.card {
    background: red !important;
}

Specifically replace a background of an element

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;
}

Change the color of a cloze

.night_mode .cloze {
    color: red!important;
}

Add-ons compatibility

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)!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].