llama
38821372dd
Use platform-native button layout in dialogs and messageboxes ( #3725 )
...
* set button-layout prop in stylesheet
* fix lint
* check for and use non-default layout on linux before falling back
2025-01-13 14:24:21 +11:00
Yuki
db30685b9a
Refactoring and comments ( #3721 )
2025-01-12 15:46:20 +11:00
Ross Brown
d0a4fbb7aa
Fix "Note Types" dialog moving down each time it is opened ( #3718 )
2025-01-12 15:33:37 +11:00
Damien Elmes
a83df635f7
Add camera usage description
...
https://forums.ankiweb.net/t/are-there-any-plans-to-allow-the-use-of-the-webcam-in-anki-for-mac/53851/10
2025-01-12 13:00:04 +11:00
Yuki
9460911d90
Fix menubar in fullscreen ( #3710 )
...
* Fix/menubar in fullscreen
* CONTRIBUTORS file
* Fix/menubar in fullscreen
* CONTRIBUTORS file
* Fix and add Type hints
2025-01-10 20:18:32 +11:00
kelciour
53be365678
Fix mpv loadfile syntax change 2 ( #3711 )
...
* Revert "Fix mpv loadfile syntax change (#3105 )"
This reverts commit 111f3bd138
.
* Fix mpv loadfile syntax change 2
2025-01-10 19:16:08 +11:00
Damien Elmes
4c34a2d133
Fix Windows bundling
...
Missed in the Qt6.8 changes
2025-01-10 18:10:36 +11:00
llama
ef94bf1cb0
Add support for html comments to template syntax ( #3662 )
...
* add support for comments to templates
* add tests
* add support for comments to CardLayout
* fix lints
* revert current impl
* extract parsing logic from legacy_text_token
* add support for comments to templates
* add tests
* refactor take_until_handlebar_start_or
* remove redundant rest
* Require full subclause match when locating next token (dae)
* Rework legacy template handling (dae)
The handlebar parser is now an instance method of a TemplateMode
enum, allowing us to avoid duplicate code for the legacy code path,
and the necessity to box up the iterator.
This does result in a change in behaviour: when the user has specified
the alternate syntax, the standard syntax will no longer be accepted.
* Remove stale comment (dae)
2025-01-09 23:35:48 +11:00
Damien Elmes
5d150c74a4
Qt 6.8.1 ( #3633 )
...
* Qt 6.8.1
Bumps minimum glibc to 2.35, and minimum macOS to 12
* Drop generation of Qt5 packaged build
Closes #3615
* Include qt6 requirements in aqt wheel; drop extra deps
* Fix aqt wheels growing over time
2025-01-09 20:07:12 +11:00
Arthur Milchior
d7fc98d4d8
Deck options without bridge ( #3571 )
...
* NF: Modify CONTRIBUTORS
Just so that I stop getting the warning
* NF: Create `deckOptionsReady`
* NF: rename _close to require_close
The method will have to be used outside of this class, so can't be private
* NF: simplify slightly some code
* NF: remove bridge command from deck options
* Remove unused import
* Remove superfluous comment with a typo
2025-01-08 21:30:30 +11:00
llama
ca6002fd58
remove image menu feature when on qt5 ( #3685 )
2025-01-07 15:30:51 +03:00
llama
91b3740554
Stop audio playback on editor close ( #3666 )
...
* stop audio playback on browser close
* revert fix
* add caller-aware versions of play_file and stop_and_clear_queue
* stop editor's audio autoplay on close
* remove superfluous stop_and_clear_queue from addcards
2025-01-04 18:55:40 +03:00
llama
5a7a9090b6
Allow choosing filtered decks in stats ( #3687 )
...
* add optional passthru param dyn to DeckChooser
* include filtered decks when choosing decks in stats
2025-01-04 17:39:16 +03:00
llama
53a2e34a3f
Fix missing buttons on bottom bar when window is narrow ( #3653 )
...
* Delay offsetHeight query to account for reflow
* Handle invalid value if webview page was deleted
2024-12-22 11:29:54 +10:00
Ben Nguyen
3a7a1c7346
Don't parse TTS text as XML ( #3651 )
2024-12-22 11:09:00 +10:00
llama
b061da73d3
Replace use of window.postMessage in card info ( #3646 )
...
* Use anki.updateCard instead of window.onmessage in card-info
* Make card-info placeholder text grey
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-12-18 11:32:07 +03:00
llama
a0712b04e1
Split off path into its own arg ( #3641 )
2024-12-16 14:15:05 +03:00
llama
b726e28229
Remove use of window.location.href in CardInfoDialog ( #3621 )
...
* Replace window.location in CardInfoDialog with load_sveltekit_page
* Fix format
* Fix ForgettingCurve's reactivity
* Props' default args aren't reactive
* Add global _updateCardId fn to card-info
* Use _updateCardId to reactively update card-info
* Fix format
* Fix type
* Use dummy form instead of window global for client-side nav
* Fallback to window.location in case form hasn't been rendered
* Use window.postMessage instead of dummy <form>
2024-12-14 22:45:54 +11:00
llama
2d207ff5ba
Remove hardcoded note/card colours from switch.py ( #3629 )
...
* Remove hardcoded note/card colours in switch.py
* Modify CONTRIBUTORS
* Switch to None as a safe default value
2024-12-14 21:30:28 +11:00
Bart Louwers
36d0fddd38
[Qt 6.7] Set ForceDarkMode attribute in AnkiWebView ( #3622 )
...
* Set ForceDarkMode attribute in AnkiWebView
* Use hasattr for backward compatibility
* Make mypy happy
2024-12-14 21:29:30 +11:00
Ross Brown
d1032d86a7
Make sure Anki resets the QtMessageHandler as it is exiting ( #3620 )
2024-12-09 15:39:45 +11:00
Ben Nguyen
128f54ed90
Fix reuse internal clipboard for primary selection pasting ( #3613 )
...
* Pass down clipboard mode
* Add type annotation
2024-12-09 15:38:52 +11:00
hideo aoyama
039c7fc0a9
Snap: keep LD_LIBRARY_PATH when in snap environment ( #3618 )
2024-12-07 00:42:03 +11:00
user1823
f345517dcc
Change font of debug console to Consolas ( #3606 )
2024-12-07 00:37:43 +11:00
sorata
d897b4588e
update error message ( #3612 )
...
Co-authored-by: Abdo <abdo@abdnh.net>
2024-12-06 03:05:49 +03:00
Damien Elmes
69ac450098
"Fields for ..."
...
https://forums.ankiweb.net/t/add-note-type-name-to-the-fields-editor/52263
2024-11-23 22:45:19 +11:00
Damien Elmes
4486227178
Bump mimalloc for CVE
2024-11-19 15:27:39 +10:00
Ben Nguyen
9d09c32ece
Enable strict_optional for aqt/tagedit, utils, sync ( #3578 )
...
* Enable strict_optional for tagedit
* Fix mypy errors
* Enable strict_optional for utils
* Fix mypy errors
* Enable strict_optional for sync
* Fix mypy errors
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-15 16:29:19 +03:00
Ben Nguyen
29f714d973
Enable strict_optional for aqt/mediasync, package, progress ( #3577 )
...
* Enable strict_optional for mediasync
* Fix mypy errors
* Enable strict_optional for package
* Fix mypy errors
* Enable strict_optional for progress
* Fix mypy errors
2024-11-15 16:24:50 +03:00
Ben Nguyen
edf59c2bb2
Enable strict_optional for aqt/deckchooser, about, webview ( #3573 )
...
* Enable strict_optional for deckchooser
* Fix mypy errors
* Enable strict_optional for about
* Fix mypy errors
* Enable strict_optional for webview
* Fix mypy errors
* Fix merge error
* Revert utils
* Add early returns
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-13 12:06:55 +03:00
Ben Nguyen
db7f128b83
Enable strict_optional for aqt/mediacheck, theme, toolbar ( #3569 )
...
* Enable strict_optional for mediacheck
* Fix mypy errors
* Enable strict_optional for theme
* Fix mypy errors
* Enable strict_optional for toolbar
* Fix mypy errors
2024-11-12 19:47:04 +03:00
Abdo
763712c696
Remove outdated TODO ( #3567 )
2024-11-09 18:42:49 +03:00
Ben Nguyen
fdaad7150e
Enable strict_optional for aqt/debug_console, emptycards, flags ( #3565 )
...
* Enable strict_optional for debug_console
* Fix mypy errors
* Enable strict_optional for emptycards
* Fix mypy errors
* Enable strict_optional for flags
* Fix mypy errors
2024-11-09 13:43:51 +03:00
Ben Nguyen
a150eda287
Enable strict_optional for aqt/notetypechooser, stats, switch ( #3558 )
...
* Enable strict_optional for notetypechooser
* Fix mypy errors
* Enable strict_optional for stats
* Fix mypy errors
* Enable strict_optional for switch
* Fix mypy errors
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-08 13:42:42 +03:00
Ben Nguyen
ac731624e1
Enable strict_optional for aqt/deckoptions, editcurrent, filtered_deck ( #3556 )
...
* Enable strict_optional for filtered_deck
* Fix mypy errors
* Enable strict_optional for editcurrent
* Fix mypy errors
* Enable strict_optional for deckoptions
* Fix mypy errors
2024-11-07 08:33:41 +10:00
Abdo
11d2b91268
Fix target deck reset to notetype-specific setting ( #3555 )
2024-11-07 08:32:42 +10:00
Abdo
442ddb085a
Fix UI hanging with empty context menu ( #3553 )
2024-11-05 17:49:48 +03:00
Abdo
43d9b00b85
Remove legacy import option ( #3536 )
...
* Remove legacy import option
* Always return False in legacy_import_export()
2024-11-05 18:25:06 +10:00
Ben Nguyen
8b84583433
Enable strict_optional for aqt/clayout, changenotetype, fields ( #3544 )
...
* Enable strict_optional for clayout
* Fix mypy errors
* Enable strict_optional for changenotetype
* Fix mypy errors
* Enable strict_optional for fields
* Fix mypy errors
2024-10-30 13:40:40 +03:00
Ben Nguyen
a25edecc88
Enable strict_optional for aqt/studydeck, tts, mediasrv ( #3542 )
...
* Enable strict_optional for studydeck
* Fix mypy errors
* Enable strict_optional for tts
* Fix mypy errors in tts
* Enable strict_optional for mediasrv
* Fix mypy errors in mediasrv
2024-10-29 12:05:54 +03:00
Ben Nguyen
7f58ca213c
Enable strict_optional for aqt/modelchooser.py ( #3539 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:19:31 +10:00
Ben Nguyen
fbd53726cc
Enable strict_optional for aqt/deckdescription.py ( #3538 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:18:16 +10:00
Ben Nguyen
2889299670
Enable strict_optional for aqt/deckbrowser.py ( #3537 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:16:42 +10:00
Abdo
a240de2652
Merge branch 'main' into aqt-strict-optional-taglimit
2024-10-27 17:10:21 +03:00
Abdo
677664dea3
Merge branch 'main' into aqt-strict-optional-overview
2024-10-27 17:06:58 +03:00
bpnguyen107
d7ed0fee16
Fix mypy errors
2024-10-26 19:33:04 -07:00
bpnguyen107
c02f234ce0
Fix mypy errors
2024-10-26 19:19:20 -07:00
bpnguyen107
364a1ada00
Fix mypy errors
2024-10-26 19:07:43 -07:00
Ben Nguyen
e4eaaa57ab
Enable strict_optional for aqt/importing.py ( #3527 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-26 19:56:34 +10:00
Ben Nguyen
507050c876
Enable strict_optional for aqt/preferences.py ( #3519 )
...
* Enable strict_optional for aqt/preferences.py
* Fix mypy errors
2024-10-26 19:33:53 +10:00