Damien Elmes
cb7a483d32
mac top toolbar looks better with a slightly whiter border
2020-01-27 17:02:40 +10:00
Damien Elmes
b76f153ffd
rework update checks to match latest AnkiWeb API
2020-01-27 17:01:09 +10:00
Damien Elmes
45e8a9a364
fix +ve max versions being marked as disabled
2020-01-27 16:58:12 +10:00
Damien Elmes
9933720994
don't do HTML filtering when pasting urls/text/images
...
fixes
https://anki.tenderapp.com/discussions/ankidesktop/37752-anki-21-wont-play-audio-files-with-a-blank-in-the-title
2020-01-26 19:13:31 +10:00
Damien Elmes
bfb1d5c5f5
fix pylint
2020-01-26 18:57:32 +10:00
Damien Elmes
09e59d7148
style tags area like fields
2020-01-26 18:47:28 +10:00
Damien Elmes
46733e8cd7
remove the extra margin in the editing area so everything lines up
2020-01-26 18:26:03 +10:00
Damien Elmes
41bbc189f6
remove the line at the top of the editor
2020-01-26 18:25:44 +10:00
Damien Elmes
d7d4fcb178
use a darker rather than lighter border in night mode
2020-01-26 18:16:21 +10:00
Damien Elmes
91c2825551
add a (perhaps temporary) tts-voices: filter to show all available engines
2020-01-26 17:35:07 +10:00
Damien Elmes
21cbb5a766
support speed control in tts tags
2020-01-26 14:31:07 +10:00
Damien Elmes
0480879c11
slightly lighter, larger night mode scrollbar
2020-01-26 10:39:53 +10:00
Damien Elmes
e4bbba4ec1
fix webview button alignment on Linux
...
caused by the height: specification inside webview.py
2020-01-26 10:18:24 +10:00
Damien Elmes
e2e7128385
fix tags area and stats buttons in night mode
2020-01-26 09:13:38 +10:00
Damien Elmes
3b8f851854
fix autoplaying of audio in preview screen, and drop extend_and_play()
2020-01-25 16:02:34 +10:00
Damien Elmes
218c033104
respond to play button clicks in preview screen + card layout screen
2020-01-25 16:02:21 +10:00
Damien Elmes
d8e3bc519b
Merge pull request #430 from glutanimate/add-reviewer-answercard-hooks
...
Equip Reviewer._showAnswer with hooks covering common add-on usages
2020-01-25 13:34:29 +10:00
Glutanimate
44c09db450
Fix formatting error
2020-01-24 15:48:05 +01:00
Glutanimate
68c5fd50f9
Equip Reviewer._showAnswer with hooks covering common add-on usages
2020-01-24 15:36:05 +01:00
Damien Elmes
d428b3b4c0
Merge pull request #429 from zjosua/latex-nightmode
...
Invert LaTeX in night mode
2020-01-24 17:37:12 +10:00
Damien Elmes
f260cfa07e
Merge pull request #428 from Arthur-Milchior/unusedOptional
...
"unused" variable become optional.
2020-01-24 17:28:47 +10:00
Damien Elmes
b821209f83
case insensitive contributor compare
...
https://github.com/ankitects/anki/pull/428
2020-01-24 17:27:43 +10:00
Damien Elmes
b4c8eaf4bb
support min/max add-on versions in download and ankiaddon manifest
2020-01-24 17:25:52 +10:00
zjosua
1450d1ca07
Invert LaTeX in night mode
2020-01-24 08:23:27 +01:00
Damien Elmes
f6ef553ba5
move strip_av_refs() into anki.sound
2020-01-24 15:48:40 +10:00
Arthur Milchior
66e1f876d7
"unused" variable become optional.
...
Adding this parameter broke one of my add-on, see
https://github.com/Arthur-Milchior/anki-keep-model-in-add-cards/issues/1
Since those parameters are not used, setting them to None by default,
as was done in some other method, seems acceptable
2020-01-23 21:46:42 -08:00
Damien Elmes
f900f24f60
more changes to the template code
...
- _renderQA() has moved to template.py:render_card()
- dropped QAData in favour of a properly typed dict
- render_card() returns a TemplateRenderOutput struct instead of a dict
- card_did_render now takes that output as the first arg, and can
mutate it
- TemplateRenderContext now stores the original card, so it can return
a card even in the add screen case
The old mungeFields and mungeQA hook have been removed as part of this
change. mungeQA can be replaced with the card_did_render hook.
In the mungeFields case, please switch to using field_filter instead.
2020-01-24 13:44:13 +10:00
Damien Elmes
836213e587
renderQA() wasn't used in the codebase
2020-01-24 11:09:38 +10:00
Damien Elmes
17ebdfc099
extract and flag AV tags as part of the render process
...
We can now show replay buttons for the audio contained in {{FrontSide}}
without having to play it again when the answer is shown.
The template code now always defers FrontSide rendering, as it wasn't
a big saving, and meant the logic had to be implemented twice.
2020-01-24 11:06:11 +10:00
Damien Elmes
e3fb184a84
fix night mode tooltips
2020-01-24 07:55:14 +10:00
Damien Elmes
cc648195e4
night mode scrollbars in webviews
2020-01-24 07:41:39 +10:00
Damien Elmes
73a5233f92
fix link colour
2020-01-24 07:17:24 +10:00
Damien Elmes
3ecc572103
fix filtered deck colour
2020-01-24 07:17:20 +10:00
Damien Elmes
03a8f0e73b
fix mpv failing to load
2020-01-24 07:06:59 +10:00
Damien Elmes
9804105928
fix white background in day mode
2020-01-23 18:36:42 +10:00
Damien Elmes
406c58a109
inject legacy funcs referencing aqt in GUI load
2020-01-23 18:20:19 +10:00
Damien Elmes
7bb7d5391b
fix lint
2020-01-23 18:12:57 +10:00
Damien Elmes
4a25853c57
fix inconsistently sized buttons and add platform classes
2020-01-23 18:05:55 +10:00
Damien Elmes
3acf926fb0
better dupe color
2020-01-23 18:01:29 +10:00
Damien Elmes
9548df1c0f
update reqs test to reflect new behaviour
2020-01-23 17:32:17 +10:00
Damien Elmes
cfbacb46e3
add back the readme badge
2020-01-23 17:27:07 +10:00
Damien Elmes
b9ee7f49d8
don't wait as long for player to stop
2020-01-23 17:27:07 +10:00
Damien Elmes
d2336f3829
iconFromRef() compat
2020-01-23 17:27:07 +10:00
Damien Elmes
de3fe320c0
look through negated conditionals instead of just ignoring them
...
https://anki.tenderapp.com/discussions/ankidesktop/38220-bug-in-2119-regarding-computation-of-req
2020-01-23 17:27:07 +10:00
Damien Elmes
5a79bc69b8
fix audio displaying console window on Windows
2020-01-23 17:27:07 +10:00
Damien Elmes
982aca0c99
fix white flash on webview load
2020-01-23 17:27:07 +10:00
Damien Elmes
7dcbc7efec
basic night mode support
...
Forces the Fusion theme when running night mode, so we don't need
to work around platform themes that don't respond to the defined
palette.
Feedback/suggestions on the chosen colours welcome - _vars.scss is the
file to change if you want to experiment with adjustments.
2020-01-23 17:27:07 +10:00
Damien Elmes
44f2f16546
move css files to scss
2020-01-23 17:27:07 +10:00
Damien Elmes
8b6cce52e1
Merge pull request #425 from yhoiseth/msgfmt-command-not-found
...
Prevent "msgfmt: command not found" error
2020-01-23 17:23:21 +10:00
Damien Elmes
30bac29682
Merge pull request #426 from yhoiseth/remote-server-run-types
...
RemoteServer._run type hints
2020-01-23 17:22:58 +10:00