Anki/qt/aqt
Damien Elmes 65cfcf9226 pare back dark mode support
Anki now solely relies on the night mode setting in the preferences
to decide whether to show in light or dark mode. Some users wanted
to run Anki in light mode while keeping the rest of their system dark,
and there were various display problems when dark mode was changed
after Anki started that couldn't be easily worked around.

NSRequiresAquaAppearance is set again, which means we can rely on
the interface appearing properly and not changing as the macOS theme
is changed.

Users who only use dark mode, and preferred the native look of widgets
in dark mode, can achieve the previous appearance by running the
following command in the terminal:

defaults write net.ankiweb.dtop NSRequiresAquaSystemAppearance -bool no

And the following in the debug console:

mw.pm.meta["dark_mode_widgets"] = True

This is hidden behind a debug console command because it requires the
user ensure their system is always set to the same light/dark mode
as Anki.
2020-04-15 21:44:56 +10:00
..
.gitignore basic night mode support 2020-01-23 17:27:07 +10:00
__init__.py drop the separate i18n backend 2020-03-20 21:15:23 +10:00
about.py add Tobias to contributors 2020-02-24 18:36:37 +10:00
addcards.py use model type to detect cloze notes 2020-04-07 14:02:53 +09:00
addons.py update if a compatible branch is found, even if mtime is wrong 2020-04-15 18:47:04 +10:00
browser.py avoid adjusting position if selected row is visible 2020-04-11 15:54:52 +10:00
clayout.py hook for initializing clayout 2020-03-01 11:42:41 +01:00
customstudy.py grey out spinner if max=0 2020-04-10 20:32:48 +10:00
deckbrowser.py fix deck_browser_did_render hook 2020-04-09 13:40:19 +10:00
deckchooser.py correct missing french translation 2020-02-05 20:48:30 -08:00
deckconf.py store config in separate DB table 2020-04-06 15:39:47 +10:00
dyndeckconf.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
editcurrent.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
editor.py Revert "Merge pull request #527 from Arthur-Milchior/explode_on_bridge_cmd" 2020-03-28 13:35:05 +10:00
errors.py restore mpv/mplayer missing warning that got lost in the av changes 2020-02-29 21:20:08 +10:00
exporting.py export in a background thread 2020-03-20 21:15:23 +10:00
fields.py allow dragging fields to change its position 2020-04-07 16:42:33 +09:00
gui_hooks.py hook add_card_did_init 2020-04-03 11:03:08 +02:00
importing.py import .colpkg in a background thread 2020-03-20 21:15:23 +10:00
legacy.py add missing short argument to legacy fmtTimeSpan() 2020-02-26 20:36:59 +10:00
main.py Merge pull request #550 from BlueGreenMagick/debugDiag-contextMenu 2020-04-11 14:19:46 +10:00
mediacheck.py add Collection struct, and get media check working again 2020-03-20 21:15:23 +10:00
mediasrv.py match both forward slash and os seperator 2020-02-29 12:36:10 +09:00
mediasync.py allow aborting a media sync while http req in flight 2020-04-01 09:49:25 +10:00
modelchooser.py correct missing french translation 2020-02-05 20:48:30 -08:00
models.py detect renamed cloze fields in note type preview 2020-04-07 08:56:54 +09:00
mpv.py formatting fixes 2020-01-21 20:39:25 +10:00
overview.py fix typo 2020-02-19 17:46:12 +09:00
pinnedmodules.py pin fcntl, which went missing on Linux in a recent update 2020-02-19 19:59:31 +10:00
preferences.py pare back dark mode support 2020-04-15 21:44:56 +10:00
previewer.py move autoplay() into card 2020-04-13 09:04:30 +10:00
profiles.py pare back dark mode support 2020-04-15 21:44:56 +10:00
progress.py fix mypy warning 2020-03-20 21:15:23 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
reviewer.py move autoplay() into card 2020-04-13 09:04:30 +10:00
sound.py reduce the chances of a race condition in mplayer code 2020-03-23 19:15:32 +10:00
stats.py Assume that web assets without a specified subpath are under /_anki 2020-02-15 15:03:43 +01:00
studydeck.py Sort decks according to their paths 2020-04-06 22:49:25 +02:00
sync.py add flag to skip downgrade on collection close 2020-04-04 17:21:45 +10:00
tagedit.py tweak hook name 2020-04-01 17:13:08 +10:00
taglimit.py Use double quotes in taglimit queries 2020-03-30 10:12:47 +02:00
taskman.py Apply mypy improvements to aqt 2020-02-26 22:27:58 -05:00
theme.py pare back dark mode support 2020-04-15 21:44:56 +10:00
toolbar.py Monkeytype qt/aqt/toolbar.py 2020-03-01 10:16:08 -05:00
tts.py fix audio getting stuck (2/2) 2020-03-15 09:34:04 +10:00
update.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
utils.py FString -> TR 2020-02-27 12:25:19 +10:00
webview.py Monkeytype qt/aqt/webview.py 2020-03-01 10:16:08 -05:00
winpaths.py tweaking the folder names again 2020-01-03 07:48:38 +10:00